i have i number 1.010101101 and the type of the number is REAL8 and i try to do default rounding method "Round to nearest even", i saw a lot of example and its all about rounding up and the use frndint but after a lot of serch i realized it's not for default rounding i am right or wrong ?
if it's wrong can you please explain to me how to do it using MASM assembly ??
this is my code:
.686
.model flat,stdcall
.stack 4096
include irvine32.inc
include macros.inc
include floatio.inc
.data
R REAL8 1.010101101
.code
main proc
finit
call ShowFPUStack
fld R
call ShowFPUStack
frndint
call ShowFPUStack
exit
main endp
end main
and this is my FPU Stack
------ FPU Stack ------
------ FPU Stack ------
ST(0): +1.0101011E+000
------ FPU Stack ------
ST(0): +1.0000000E+000