📄 tfloat.inc
字号:
dim f_dpart1 as word
dim f_ndpart1 as word
dim f_dpart2 as word
dim f_ndpart2 as word
dim f_zeros as byte
f_ndpart1=0
f_dpart1=0
f_ndpart2=0
f_dpart2=0
goto TheEnd
addDecimalVal:
if f_dpart2>0 then
f_dpart2=f_dpart2+f_dpart1
endif
if f_dpart2>10000 then
f_dpart1=f_dpart2//10000
f_ndpart1=f_ndpart1+f_dpart2/10000
else
f_dpart1=f_dpart2
endif
f_ndpart1=f_ndpart1+f_ndpart2
f_zeros=0
if f_dpart1<=9 then
f_zeros=3
goto Kk
endif
if f_dpart1<=99 then
f_zeros=2
goto kK
endif
if f_dpart1<=999 then
f_zeros=1
goto kK
endif
KK:
return
TheEnd:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -