29.08.2014, 09:17
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
*/