write a program to input decimal numbers and display the integar part of the decimal number .(use INT) pls no spam or any other languages
Answers
Answer:
take the result as interesting. the variable which is taking input as double. then automatically the program gives u only the integer part
let billion = 1000000000;
But in real life, we usually avoid writing a long string of zeroes as it’s easy to mistype. Also, we are lazy. We will usually write something like "1bn" for a billion or "7.3bn" for 7 billion 300 million. The same is true for most large numbers.
In JavaScript, we shorten a number by appending the letter "e" to the number and specifying the zeroes count:
let billion = 1e9; // 1 billion, literally: 1 and 9 zeroes
alert( 7.3e9 ); // 7.3 billions (7,300,000,000)
In other words, "e" multiplies the number by 1 with the given zeroes count.
1e3 = 1 * 1000
1.23e6 = 1.23 * 1000000
Now let’s write something very small. Say, 1 microsecond (one millionth of a second):
let ms = 0.000001;