Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert number type in calculation equation
#1
Question 
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.


Messages In This Thread
Convert number type in calculation equation - by laichunguang1 - 09-23-2022, 05:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)