09-23-2022, 05:27 AM
(This post was last modified: 09-23-2022, 05:30 AM by laichunguang1.)

Hi guys.

Is there a easy way to convert number type in calculation equation?

For example:

out 100*(1/2)

it return 0

But in real math calculation, it for sure will get a result of 50.

It is because (1/2) step gets a result of int 0 instead of 0.5 imo.

So I wonder what function I can add before (1/2) to make it get 0.5?

And make "out 100*(1/2)" return 50?

Thank u for the help in advance.

Is there a easy way to convert number type in calculation equation?

For example:

out 100*(1/2)

it return 0

But in real math calculation, it for sure will get a result of 50.

It is because (1/2) step gets a result of int 0 instead of 0.5 imo.

So I wonder what function I can add before (1/2) to make it get 0.5?

And make "out 100*(1/2)" return 50?

Thank u for the help in advance.