阅读:2788回复:5
FLOATINGPOINT
怎么使用浮点数,请给一个使用加减乘除的例子。
|
|
|
沙发#
发布于:2001-08-21 09:44
为什么用FLOATOBJ,在加入头文件WINDDI.H后出了500个错误。
|
|
|
板凳#
发布于:2001-08-21 12:16
看一看walter oney的fputest.
|
|
地板#
发布于:2001-08-21 16:58
哪里?
|
|
|
地下室#
发布于:2001-08-22 09:29
#ifdef __cplusplus
extern "C" #endif ULONG _fltused=1; .......... double floatValue,a,b; ........ nstatus = KeSaveFloatingPointState(&saveData); if (NT_SUCCESS(nstatus)) { a = 4.22; b= 3.33; floatValue = a*b; DbgPrint("The float value is %8.8lx\n",floatValue); floatValue = 14.0526;//=a*b KdPrint(("The float value is %8.8lx\n",floatValue)); floatValue = sin(1.57); KdPrint(("The float value is %8.8lx\n",floatValue)); floatValue = 0.9999996829318346202;//=sin(1.57); KdPrint(("The float value is %8.8lx\n",floatValue)); KeRestoreFloatingPointState(&saveData); } |
|
5楼#
发布于:2001-08-23 09:12
thank you
|
|
|