PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
1 sec ago
Untitled
2 sec ago
Java - Hello World
Java | 4 sec ago
Untitled
7 sec ago
Untitled
12 sec ago
Untitled
13 sec ago
ser_1369140773370
15 sec ago
Untitled
29 sec ago
Untitled
By: a guest on
Apr 25th, 2012
| syntax:
None
| size: 0.23 KB | hits: 14 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
ANSI C floating point calculation inaccuracy
#include<stdio.h>
main()
{
float _lcl1=66.3;
float _ucl1=76;
float lbl1 = 0;
float ubl1 = 0;
lbl1 = (_lcl1 - 2.5 * (_ucl1 - _lcl1));
printf ("%en",lbl1);
}
4.205001e+01
create a
new version
of this paste
RAW Paste Data
ANSI C floating point calculation inaccuracy #include<stdio.h> main() { float _lcl1=66.3; float _ucl1=76; float lbl1 = 0; float ubl1 = 0; lbl1 = (_lcl1 - 2.5 * (_ucl1 - _lcl1)); printf ("%en",lbl1); } 4.205001e+01