I am using the expression below to calculate the distance, however the parser is unable to process this expression
Distance = (1/2) * (GRAVITATIONAL_FORCE) * (time *2)
If i use the above expression as below it works.
Distance = FRACTION * GRAVITATIONAL_FORCE * (time * 2)
- FRACTION = 0.5
I have tried to assign FRACTION = (1/2), and use FRACTION as variable in above expression it does not work either.
Please suggest what is wrong with the first expression.
Also, is there a function for a square of a number? in above expression time is a variable that need to be square, I have been writing expression as (time *time) or (time * 2)

Bikesh SrivastavaRank #108 · 20.3K reputationPosted Sep 19, 2016, 10:58 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 19, 2016, 7:47 AM EDT
Please try below code-
Distance = (1.0/2.0) * (GRAVITATIONAL_FORCE) * Math.Pow(time,2)
Tapan PatelRank #614 · 3.9K reputationPosted Sep 19, 2016, 1:54 PM EDT