Questions tagged as 'inteiros'

3
answers

How to convert an int number to string in python?

I need to do an exercise in which I ignore an integer variable of 3 digits and python has to show it inverted, but until where I know an integer variable can do that, but a string yes. What can I do?     
asked by 23.03.2017 / 19:15
1
answer

Why can not I store the value '4294967295' in an integer of 4 bytes?

I would like to know why I can not store the value '4294967295' in a% byte of 4 bytes and the quoted value converted to binary gives exactly 4 bytes (or 32 bits)?     
asked by 03.05.2018 / 05:45
2
answers

How to print a vector of integers by removing the last comma in Python 3?

I want to print on the screen a vector of integers on the same line and separated by commas, and I want to remove the comma after the last number. How could I do this in Python? My code looks like this: for i in range(12): print(nume...
asked by 22.05.2017 / 17:44
1
answer

How to tell if a number is integer

I need to develop an algorithm where it divides a number by 2 until it reaches the rest of the division, and I need to know if the rest of this division is an integer, what method can I apply to develop this problem? where: funcao menu_8():i...
asked by 01.06.2016 / 20:17
1
answer

Would an alphabetical sequence counter be possible?

I'm doing a pascal code where one of my arrays has alphabet values (A to Z) for a personal project of type Questions and Answers / Meanings from A to Z : > aux[1]:= 'a'; aux[2]:= 'b'; aux[3]:= 'c'; ... aux[24]:= 'x'; aux[25]:= 'y'; aux[26]:=...
asked by 18.02.2016 / 05:04
2
answers

Convert hexadecimal to integer

I have this value in hexadecimal "E365A931A000000". I need to convert it to integer I'm using the following code. string hex = "E365A931A000000"; CodLibercao = Convert.ToInt32(hex); This code is giving me the following exception:    "...
asked by 03.03.2015 / 21:22
3
answers

How to check if a number is within a range in Python?

In Python, I would like to check if a number is within a range. Is there a more pythonic way than the following code? if n >= 100 and n <= 200: ...     
asked by 24.08.2016 / 19:25
1
answer

c ++ - How to return a value to a previous window in Qt?

Hello, I'm developing a project where I will have many calls to new windows and need to recover a value of these windows to the main window (MainWindow). The problem is that it becomes impossible to get the returned value because, when closing t...
asked by 29.08.2016 / 16:34
2
answers

How to create variable to contain a number with millions of digits?

I saw a report on the discovery of a prime number that contains 22 million digits. How could a variable contain a number, for example, with 100 million digits.     
asked by 15.03.2016 / 00:11
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