由买买提看人间百态

topics

全部话题 - 话题: myfloat
(共0页)
b***y
发帖数: 2799
1
来自主题: Programming版 - [合集] float data type question
☆─────────────────────────────────────☆
Savant (期待奇迹中) 于 (Sun Sep 18 22:35:12 2005) 提到:
i have two lines of code as:
//////
float myFloat = 99999999;
printf("%f", myFloat);
//////
it gives 100000000.000000
i am really confused about the result. does somebody have experience on this?
how can i resolve this (giving the correct output) without changing the data
type
to integer or double? thanks.
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Mon Sep 19 00:23:48 2005) 提到
(共0页)