Post Reply 
Numbers within units (50g)
09-17-2015, 01:25 PM (This post was last modified: 09-17-2015 01:28 PM by Claudio L..)
Post: #10
RE: Numbers within units (50g)
(09-17-2015 06:22 AM)Tugdual Wrote:  Interesting discussion. I believe that the original 50g logic is correct.
Conceptually, a UOM is not a variable attribute but a simple multiplication.
50_m is equivalent to 50*m and then UOM can be handled as symbols.

This is powerful and aligned with what we do in physics and totally explains side effect.

The logic is indeed correct. My question was if it has any use, or in other words, if a compiler *needs* to specifically deal with units like 'm/2' or 'm^(2+3)'.
I can see one case where it needs to be: fractional exponents like m^(2/3)
The 50g would transform this exponent to a real 0.6666666667. I'll see if I can keep it as a fraction, that would be a nice improvement over the current system.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Numbers within units (50g) - Claudio L. - 09-15-2015, 09:53 PM
RE: Numbers within units (50g) - rprosperi - 09-16-2015, 12:55 AM
RE: Numbers within units (50g) - Bruno - 09-16-2015, 06:54 AM
RE: Numbers within units (50g) - rprosperi - 09-17-2015, 12:38 AM
RE: Numbers within units (50g) - Tugdual - 09-17-2015, 06:22 AM
RE: Numbers within units (50g) - Claudio L. - 09-17-2015 01:25 PM
RE: Numbers within units (50g) - Tugdual - 09-22-2015, 05:40 AM



User(s) browsing this thread: 1 Guest(s)