Float help!
#4

pawn Код:
new Float: myFloat = 0.33412359;

printf("Original value: %f", myFloat);
printf("Only 1 number: %.1f", myFloat);
printf("Only 2 numbers: %.2f", myFloat);
pawn Код:
//Prints:/*
Original value: 0.334123
Only 1 number: 0.3
Only 2 numbers: 0.33
*/
Reply


Messages In This Thread
Float help! - by dieuhanhphuc - 29.08.2014, 09:09
Re: Float help! - by Stinged - 29.08.2014, 09:15
Re: Float help! - by Thogy - 29.08.2014, 09:15
Re: Float help! - by [XST]O_x - 29.08.2014, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)