conversion tag

16 questions


1 answers
93 views
0
I'm asking you how to change all the characters in the list ('1', '2',...) to numbers without a for statement

['1', '2', '3'] -> [1, 2, 3]How do I turn a number stored in text into a number?I think there is a way to do it without using the for statement, but I don't know what to do.


1 answers
123 views
0
How do I change String to Int?

I use Java. How do you change String to int type in Java?The string has numbers like 1234 and I want to change it to 1234


1 answers
132 views
0
Can I convert strings to numbers in Java?

How do I convert the int value into a String type string in Java?The string that I made is made up of only numbers. I want to convert that string into a number.For example, you want to get the number ...


1 answers
111 views
0
It says there's no itoa. Why?

http://www.cplusplus.com/reference/cstdlib/itoa/?kw=itoaI used the example here, but it says there's no itoa.What's wrong with you?itoa doesn't exist#include <stdio.h>#include <stdlib.h>in...


1 answers
104 views
0
Python integer conversion program error question

sel=int(Determine input number (16/10/8/2) :)if sel != 16 or 10 or 8 or 2: print (Error)if sel == 16 or 10 or 8 or 2: num=input (Enter Value:)if sel == 16 : num10 = int(num,16)if sel == 10 : num10...

2 years ago

1 answers
59 views
0
Cannot convert argument 1 from 'float' to 'float[]'

#include <iostream>using namespace std;float func(float a[]);int main(){ float x[3] = { 1.5, 2.5, 3.5 }; *cout << func(x) << endl;*}float func(float a[]){ float sum = 0; for (int i =...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.