Subject:
|
Arithmatic operation
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 20 Nov 1998 08:08:36 GMT
|
Original-From:
|
Javaid Iqbal <p2219212@student.mech.unsw.(NoSpam)edu.au>
|
Viewed:
|
1392 times
|
| |
| |
Hi all,
I am dividing 4.1 by 4.1 in following manner and getting answer 2.
instead of 1.
Dividing 4.2 by 4.2 give 1 result, dividing 4.6 by 4.6 again give 2.
Except 4.1 and 4.6 rest all numbers give 1 result. I am using IC 3.2. Any
help in this regards would be appreciated.
void main()
{
float a;
a=4.1/4.1;
printf("%f",a);
}
Thanks
Javaid Iqbal
|
|
Message has 1 Reply: | | Re: Arithmatic operation
|
| (...) I've asked for help with the floating point bugs in IC before, and nobody seems to care. Unfortunately, I've come to not use IC floating point variables at all, since I can't trust them. It's all very frustrating since none of the IC versions (...) (26 years ago, 21-Nov-98, to lugnet.robotics.handyboard)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|