Code: Select all
Var = 11.333333
SetFormat, float, 6.2
Var -= 1 ; Sets Var to be 10.33 with one leading space because the total width is 6.
SetFormat, float, 0.2
Var += 1 ; Sets Var to be 11.33 with no leading spaces.
SetFormat, float, 06.0
Var += 0 ; Sets Var to be 000011
In this case I use FloatFast, 0.3 and everythink look good
Code: Select all
#SingleInstance force
SetFormat, FloatFast, 0.3
o := {}
v := (134.969-0)*1000/1434.98
o.x := (134.969-0)*1000/1434.98
o.y := q:= (134.969-0)*1000/1434.98
u := o.x
msgbox,% "object:" A_Tab round(o.x,14) A_Tab o.x "`nvariable:" A_Tab round(v,14) A_Tab v "`nO2Var:" A_Tab round(u,14) A_Tab u "`no.y:=q:=" A_Tab round(o.y,14) A_Tab o.y
return
f4::reload
In this case I use FloatFast, 0.3 and Float, 0.9 inside function (or out of execution section) that is not even called and everything work as Float, 0.3 excluding objects
Code: Select all
#SingleInstance force
SetFormat, FloatFast, 0.3
o := {}
v := (134.969-0)*1000/1434.98
o.x := (134.969-0)*1000/1434.98
o.y := q:= (134.969-0)*1000/1434.98
u := o.x
msgbox,% "object:" A_Tab round(o.x,14) A_Tab o.x "`nvariable:" A_Tab round(v,14) A_Tab v "`nO2Var:" A_Tab round(u,14) A_Tab u "`no.y:=q:=" A_Tab round(o.y,14) A_Tab o.y
return
; SetFormat, Float, 0.9 ; or here
f(){
SetFormat, Float, 0.9
msgbox, this function is nod called
}
f4::reload
In this sace I use onlny slow mode but this time it not affect to object items even if it should (probably)
Code: Select all
#SingleInstance force
SetFormat, Float, 0.3
o := {}
v := (134.969-0)*1000/1434.98
o.x := (134.969-0)*1000/1434.98
o.y := q:= (134.969-0)*1000/1434.98
u := o.x
msgbox,% "object:" A_Tab round(o.x,14) A_Tab o.x "`nvariable:" A_Tab round(v,14) A_Tab v "`nO2Var:" A_Tab round(u,14) A_Tab u "`no.y:=q:=" A_Tab round(o.y,14) A_Tab o.y
return
f4::reload
my current ahk_v - 1.1.24.04