Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.989 Beiträge
 
#1

Why is the result of RoundTo(87.285, -2) => 87.28 – Stack Overflow

  Alt 8. Mär 2011, 13:20
Programmers on all sorts of platforms get this wrong all the time (I admit having done this in bad ways myself too). In short: Don’t expect floating point values in a computer to be represented as decimals. Rob Kennedy wrote a very nice answer on this: The exact value 87.285 is not ...

More...
  Mit Zitat antworten Zitat