Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
Why the printf function is able to print 28 decimal digits, if the float has only 24-bits ma...
6.5.2.2, paragraph 6
If the expression that denotes the called function has a type that does not include a prototype, the integer promotions are performed on each argument, and arguments that have type float … you can print more than 7 decimal digits, because your float is converted to a double behind the scenes. …
1
vote
invalid operands to binary expression
Line 1: OK
Line 2: If you have declared total_float as a float before this code snippet it's OK.
Line 3: That is not the correct use of roundf(). … I'll give you just the signature of the functions, which is float roundf(float x).
Line 4: I think you want to write printf("%d", total_int);. …