# Questions tagged as 'integer'

2
answers

## Convert Integer to String, with leading zeros?

I'm manipulating dates, and I need to convert ints to String without losing the number in front. That is, 01, 02, 03, 04 I've tried String.valueOf() and Integer.ToString() , but it eliminates the zero on the left thanks in...
asked by 28.10.2018 / 20:48
1
answer

## How to round a float to integer (upwards)?

I have an operation that returns a float for example 6.3 and I need to round it to 7 I have tried with Math.round(6.3) but when the decimal is less than 0.5 it rounds down and when it is bigger it rounds up and I need it to...
asked by 14.06.2018 / 10:34
2
answers

## Is there a simple way to convert a list of type str to one of type int?

This is what I try: example1: a=['1','2','3','4'] for m in range(len(a)): int(a[m]) print(a) But then I realized that for example in: example 2: a=['1','2','3','4'] b= [] int(a) b = b + [a] print(b) #Output b = ['1']...
asked by 13.11.2018 / 01:50
0
answers

## problem with JSON when you flash an id

Esteemed I introduce myself to this great community, I always look for help here but it is the first time that I am forced to publish an application, since I thank those who can respinderme. My problem is that I'm getting this error when runn...
asked by 02.12.2018 / 16:59
1
answer

## save in variables int, String and boolean the results obtained by the ResultSet

I have a Object [][] where I temporarily store three values that I get from Base de Datos ,% int ,% String and% boolean , how do I pass them from: result.next();{ datosObt = result.getString( "cedula"...
asked by 21.10.2018 / 08:08