integer tag

18 questions


1 answers
141 views
0
How do you generate integer type random numbers in a specific range?

You want to use Java to generate a random number of a specific range of int types.For example:You want to generate random numbers ranging from 5 to 10 with a minimum value of 5 and a maximum value of ...


1 answers
91 views
0
Is it possible to change string to integer on Android?

I'd like to change the string to an integer.There's edittext, and the user enters a number here.I received it as String hello, but I want to change it to Integer instead of String.EditText et = (EditT...


1 answers
122 views
0
Why is there no rounding function (rounding x)?

There is a round() function, but why is there no ceil() function? ㅜ??round(2.3)If you do this, you get 2.0, but I want to get 3. int(number + 0.5)I've tried it, but I'm going crazy because it's also l...


1 answers
141 views
0
I can't put an integer on a string

I can't put an integer on the string, so what should I do?TypeError: unsupported operand type(s) for +: 'int' and 'str'for i in range (1,10): string=string+i


1 answers
113 views
0
I want to take a comma in a thousand units when converting Integer to String, can I do it?

If there's a number called 35634646, I'd like to convert it to String, 35,634,646.Is there a simple way to do it?

1 years ago

1 answers
79 views
0
Is there no limit to the minimum integer value of Python?

In Java, Integer.MIN_VALUE or Integer.MAX_VALUE In C++, <climits> obtained an integer minimum/maximum value.I wonder if there is a minimum and maximum value in Python.

1 years ago

1 answers
109 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
124 views
0
How do I compare Integer classes in Java?

For example,Integer a = 4;if (a < 5)I know that this is a comparative operation by learning auto boxing. The Integer and int types are comparatively well calculated,The problem is when calculating ...

1 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.