Community Profile

photo

Ali


Active since 2016

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Numerical issue in simple summation/addition
below code prints 1. But if you have b = 0.2 at the second line, it does not print 1. a = 0; b = 0.1; c = a; w...

ongeveer 8 jaar ago | 3 answers | 0

3

answers

Answered
Numerical issue in simple summation/addition
So, what is the fix? how can i have such a while loop with 0.1 increments and stop before 1?

ongeveer 8 jaar ago | 0