อยากทราบวิธีทำทศนิยมให้เป็นสองตำแหน่งอ่ะครับ ตามนี้เลย
รบกวนทีครับ ขอบคุณมากครับ
อยากทราบวิธีทำทศนิยมให้เป็นสองตำแหน่งอ่ะครับ ตามนี้เลย
รบกวนทีครับ ขอบคุณมากครับ
float f = 1562.1564533f;
int i = (int) f*100;
float f2 = (float) i/100.0f;
http://img98.imageshack.us/img98/731/ubd7518fj8.png
XSI - Behavior Programmer
Boardgame Thailand Fanclub
Ball Juggling~
Actions : (View-Readers)
There are no names to display.
Members who have read this thread: 0