TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Farhad Ahmad
NA
11
2.5k
Mathematical Operator in an expression
Sep 19 2016 11:23 AM
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)
Reply
Answers (
3
)
how to read values of a list and then isert them to a form a
How to close a running instance of MS Word in C#