# Decimal numbers (float)

Hello everyone, in a variable of type float (decimal), how can I reserve the first number in a new variable and the number after the point in another new variable.
Ex.: pageVars.pace (6.45)
Note: I need to reserve 6 in a variable, then 6*60 = 360 seconds and add 45, 360+45 = 405 seconds.
Would anyone know a starting point?

Hey!

assuming you’ve set your variables to type “Number”. The way I would split it is by using the “Integer” formula when setting the 2 variables from the main input rational number. Assuming you have 3 variables named, Number, Hour and Minute. To reserve the first number, assign the variable Hour to be the integer of the Number variable To reserve the decimal part, you assign the Minute variable to a formula that subtracts the Integer value from the rational number. This will leave only the decimal part Your end result should look like this

In the last line I used the “MULTIPLY” formula to convert the Minute variable into actual minutes, then I also used the “INTEGER” formula to make it a whole number. If your variables are set to Text type then you might need to wrap “NUMBER()” before each operation