CNV: A Function to Convert Units
|
07-22-2017, 10:28 PM
(This post was last modified: 07-23-2017 12:37 AM by Skyblues.)
Post: #5
|
|||
|
|||
RE: CNV: A Function to Convert Units
This is my first attempt to expand on epp's "CNV: A Function to Convert Units" program.
All the unit conversions seem to be working except Speed. The only units that work in Speed are kph, mph and knot; the rest are creating "Error: Syntax Error". It doesn't seem to like anything with a "/" in the name and I can't find the problem. So I guess the question is, how do I get the code to accept a name with a "/" in it? I've been reading through the code to try to figure why m/s (for example) isn't being accepted although it's a valid unit in the Prime. Is there an IDE one can use to step through the code? Edit: In case anyone's interested, I discovered that anything with a "/" in it, must be enclosed in parentheses. I've tried out most of the unit conversions and they work. If anyone finds an error, please let me know. I edited my original code with my update. I find it very useful. Thanks for the original code, epp! Code: #pragma mode(separator(.,;) integer(h32)) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
CNV: A Function to Convert Units - epp - 10-27-2015, 08:34 PM
RE: CNV: A Function to Convert Units - StephenG1CMZ - 10-30-2015, 08:58 AM
RE: CNV: A Function to Convert Units - Skyblues - 07-17-2017, 05:53 AM
RE: CNV: A Function to Convert Units - Skyblues - 07-22-2017, 06:15 AM
RE: CNV: A Function to Convert Units - Skyblues - 07-22-2017 10:28 PM
RE: CNV: A Function to Convert Units - Skyblues - 08-12-2017, 02:24 AM
RE: CNV: A Function to Convert Units - hp48g - 10-24-2018, 01:37 PM
RE: CNV: A Function to Convert Units - dino9832 - 10-03-2023, 03:26 AM
|
User(s) browsing this thread: 2 Guest(s)