Is it a bug or what?
#1

pawn Код:
printf("%.3f",1.152);
Somehow prints 1.151. Could someone explain this? :O
Reply
#2

https://www.******.co.uk/search?q=fl...int+inaccuracy
Reply
#3

https://www.youtube.com/watch?v=PZRI1IfStY0
Reply
#4

But given value is accurate and not constant. Other programming languages, like PHP prints 1.152 and code is the same:
PHP код:
<?php
printf
('%.3f',1.152);
?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)