Code: Select all
Label:
SetFormat, Float, 0.%Var%
Return
Am I missing something?
I have also tried
Code: Select all
Numpad1::
SetFormat, Float, 0.2
Return
Numpad2::
SetFormat, Float, 0.5
Return
Code: Select all
Label:
SetFormat, Float, 0.%Var%
Return
Code: Select all
Numpad1::
SetFormat, Float, 0.2
Return
Numpad2::
SetFormat, Float, 0.5
Return
It becomes active only after a math operation.Sets the format of integers and floating point numbers generated by math operations.
Code: Select all
a:=5/3
SetFormat, float, 0.2
msgbox % a
a +=0
msgbox % a
Yes. I know that. I had the test code:It becomes active only after a math operation
Code: Select all
TV = 1.12345678902
Numpad1::
EnvAdd, TV, 1
MsgBox, %TV%
Return
Numpad2:
SetFormat, Float, 0.5
Return
Numpad3::
SetFormat, Float, 0.2
Return
Code: Select all
Numpad1::
SetFormat, Float, 0.5
[Some math operation]
Return
Numpad2::
[Some math operation]
Return
Users browsing this forum: Anput, jameswrightesq and 289 guests