#1

why i get 0.00 with this code:
Код:
printf("skaicius %.2f\n", 3/2);
Reply
#2

Maybe try:
Quote:

printf("skaicius %.1f", 3/2);

Reply
#3

i think cuz of this
PHP код:
3/
change it to something else like
PHP код:
3_2 
Reply
#4

pawn Код:
printf("skaicius %.2f\n", 3.0 / 2.0);
You were dividing 2 integers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)