That is sooooo cool!
Thanks!
Search found 6 matches
- 10 Sep 2018, 07:53
- Forum: Ask for Help (v1)
- Topic: round to nearest non-zero number
- Replies: 5
- Views: 1616
- 07 Sep 2018, 14:24
- Forum: Ask for Help (v1)
- Topic: round to nearest non-zero number
- Replies: 5
- Views: 1616
Re: round to nearest non-zero number
Wow! Thanks! I tried out both versions. Incredible! Both of them saved me about 400 lines of code (lots of "if 0.0 then don't round, otherwise round" for multiple variables...). You guys would probably laugh if you saw my whole script, but hey, I'm still pretty new to this. Right now I'm favoring Ex...
- 07 Sep 2018, 07:56
- Forum: Ask for Help (v1)
- Topic: round to nearest non-zero number
- Replies: 5
- Views: 1616
round to nearest non-zero number
Is there a way to round the result of an operation/expression to the nearest non-zero number? E.g. a := x / y Depending what x and y are, the result will have a varying number of decimal places and 0s before it gets to the first non-zero number. If the result is e.g. 0.000456 I would like to round i...
- 04 Sep 2018, 04:16
- Forum: Ask for Help (v1)
- Topic: Convert units as you type?
- Replies: 5
- Views: 1475
Re: Convert units as you type?
Oh man... I was sure I already tried that...
Thanks! That did the trick!
Thanks! That did the trick!
- 04 Sep 2018, 04:13
- Forum: About This Community
- Topic: Issues with registering, Post your username here...
- Replies: 852
- Views: 2027320
Re: Issues with registering, Post your username here...
I have manually activated your account, jftech. Welcome to the forums! :+1: Thank you! I don't know why, but I still can't log in, and still don't get an email to reset my password. But don't worry, I just registered a new account, which worked perfectly. Thanks for your help! Feel free to delete t...
- 04 Sep 2018, 02:24
- Forum: Ask for Help (v1)
- Topic: Convert units as you type?
- Replies: 5
- Views: 1475
Re: Convert units as you type?
I'm trying to do something similar. I've tried adapting the code from trust_me (thanks!) to convert different units based on the measurement involved (i.e. liters, meters, etc.). But I got stuck: I need to round the resulting converted number to 2 decimal places. What am I doing wrong? This works: h...