python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I get the first 5 numbers of a double
how can i only have the first 5 numbers in a double?
12345.6789 --> 12345
1.23456789 --> 1.2345
0.123456789 --> 0.1234
I have tried different things such as multiplying the number by the pow...
Need_Not
Votes: 0
Answers: 4
Unexpected output when converting double data type to integer data type
I am writing a program where I want to know a number can be written in the form of x^y.
I know that log(base, a) = log2(a)/log2(base);
input => 823543
output => 7^7
So if I am doing:
double res...
Mayank Tyagi
Votes: 0
Answers: 0
Need help rounding a double number in printf
I'am trying to round a number of a multiply sum but I have no luck with it.
I think I'am using the round function wrong. But I can't find anything.
int main()
{
double euro, ats, sum;
euro = ...
TheLuckyGuy
Votes: 0
Answers: 1