Message 1 of 6

Not applicable
01-09-2019
06:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys,
Wondering if anyone has a lisp that will calculate the grade in both % and 1 in XXX based on values contained in 3 text. Example, Text A (a level) = 10, Text B (a level) = 5, Text C (a distance) = 50. This would Output "1 in 10, 10.0%"
% = (A-B)/C*100
1in = C/(A-B)
I understand the maths is simple, but I have no idea how to do this in a lisp.
Basically we need to continually update a long section with as constructed information, we are provided the upstream and downstream invert levels and a length of pipe as text format. We need to output the grade of each section in both % and 1 in XXX formats as new piece of text that is inserted at mouse click.
Solved! Go to Solution.