conversion tag

16 questions


1 answers
99 views
0
How can I determine if the string is a number (integer plus real numbers) in Python?

If you use isdigit(), only the integer is true, and the real type shows FalseI don't think there's anything like isfloat() what should I do?


1 answers
131 views
0
How do I change int to QString?

Is there a function that takes int as a factor and returns QString?I'm looking for a function like intToQSTring() in the code below!int i = 42;QString s = intToQSTring(i)

2 years ago

1 answers
188 views
0
How do I change the string to boolean?

How do I change the string to boolean?def strToBool(s): return str.toupper() == TRUEIs there any function that Python provides other than what I define together?


3 answers
180 views
0
Why can only higher-class methods be used if class-type conversion is performed in Java?

The most incomprehensible part is that the parent class' method is only available when the type transformation is performed.Although it can be understood that the ultimate purpose of transforming the ...

2 years ago

1 answers
171 views
0
I am curious about converting the object type data into a list on Android

I get the value from Google Firebase database to getvalue.When I saved it as a set value, the data that was listed was saved as an object typeI'm calling it getValue, but I have to change the object d...


2 answers
119 views
0
Python basic questions) essence conversion program) int() can't convert non-string with explicit base

select= int (input(decision of decimal (16/10/8/2):)num=input (Enter Value:)if select !=2 and select != 8 and select != 16 and select != 10 : print(Please enter only one of the 16,10,8,2 numbers) ex...

2 years ago

1 answers
85 views
0
I want to change the int to a string

Not the way I know itPlease tell me the easiest way to change the int type to string!//1.int a = 10;char *intStr = itoa(a);string str = string(intStr);//2.int a = 10;stringstream ss;ss << a;stri...


1 answers
96 views
0
Can I convert a Unicode string to a regular string (including $$)?

Is it possible to convert a Unicode string to a regular string?If it's just an alphabet, I'll do something about it, but in addition to the alphabet, it also contains special characters such as , and ...


1 answers
158 views
0
How to change char to String

I want to change the char data type to String. How do I do it


1 answers
72 views
0
Can you convert the String object of Java into InputStream and save it?

String exampleString = example;If I have a code like this, how do I put it in InputStream??

- 1 - »

© 2024 OneMinuteCode. All rights reserved.