Questions tagged as 'int'

1
answer

Integer array conversion in String

I am a beginner in Java and would like to learn how to convert an array of integers to a String.     
asked by 24.06.2014 / 05:50
1
answer

Export Table to Excel, Problems with String Numerica

I looked here in the Stack, but maybe I did not find the right question, I'm exporting data from PHP to Excel with HTML tags, it exports in a good, I happen to have a column that is String, for example "89551010326000103872", but I have tried to...
asked by 04.09.2017 / 19:16
1
answer

1) Write a function that receives two integers, positive, and determine the product of them, using the following multiplication method [pending]

1) Write a function that receives two integers, positive, and determine the product of them, using the following multiplication method. a. Divide, successively, the first number by 2, until 1 is obtained as a quotient; B. Simultaneously, fold...
asked by 03.04.2017 / 01:55
3
answers

convert a string list to a list of integers

x = ['443' , '552' , '342' , '368' , '9867' , '335' , '9412' , '7436' , '1692' , '85' , '990' , '332' , '8816' , '4567' , '279' , '119' , '2290' , '234' , '9863' , '345' , '230' , '5574' , '230' , '5432'] How can I convert this list to a new...
asked by 22.05.2018 / 21:45
2
answers

Is it right to use string when integer value?

Today I came across a certain situation, which left me with doubts: In my application I have some ID's coming from a table, these ID's are integer values (1,2,3, and so on) and all I treat them as string . One of the re...
asked by 14.10.2016 / 16:46
2
answers

Problems with input results after using an "int ()"

Code sample: idade = input("Qual a sua idade? ") int(idade) if idade >= 45: print("Tá velho cara, já era!") else: print("A vida está só começando rapaz!") Error encountered: Qual a sua idade? 45 Traceback (mos...
asked by 28.12.2018 / 01:49
1
answer

Integer to String Conversion [duplicate]

I'm creating a cafeteria system. I created the login system and it is working, when I was creating a page to create the logins, I am having difficulty converting the level from int to string - the txtNivel.Text does not...
asked by 27.02.2018 / 17:56
1
answer

Output a void function

I'm programming a word hunting and a problems in the void function is making it difficult. In the code I use functions to scan the array in all directions and returns me the start and end coordinates or exit the function and start reading in ano...
asked by 30.09.2016 / 04:22
1
answer

Dictionary problem - AttributeError: 'int' object has no attribute 'get'

I'm starting to learn the basics in Python, and one of the examples on dictionary lists asks for something like this: inventory = {'a' : 1 , 'b' : 6 , 'c' : 42 , 'd' : 1 , 'e' : 12} def DisplayInventory(stuff): for k,v in stuff.items():...
asked by 29.12.2017 / 06:51
1
answer

Converting int to string

I made a program that simulates a login and when I convert the password that is in int to a string using sprintf it's from the failed segmentation, I tried to use the itoa but it's the error definition #include <stdio.h> #include <std...
asked by 04.12.2017 / 20:35