DesertDog
Member
I am venturing out and working with STL, but right now I am feeling really stupid. I want to use an input variable INT (0 to ?) for determining decimal position while converting a real to an integer.
Example: 12.345 converted to:
Var = 0 Out = 12
Var = 1 Out = 123
Var = 2 Out = 1235
The problem is moving the decimal before the RND command. I know I should be able to use Log on the reading to give me a value, add the variable to it (after converting to real) and then use inverse Log to give me the original value with the decimal moved. This works on a calculator so I know the method is good. I just can't find Log and Inv Log for STL. Anyone know how this is done?
Example: 12.345 converted to:
Var = 0 Out = 12
Var = 1 Out = 123
Var = 2 Out = 1235
The problem is moving the decimal before the RND command. I know I should be able to use Log on the reading to give me a value, add the variable to it (after converting to real) and then use inverse Log to give me the original value with the decimal moved. This works on a calculator so I know the method is good. I just can't find Log and Inv Log for STL. Anyone know how this is done?