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
 Claudio L. Senior Member Posts: 1,887 Joined: Dec 2013
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.
 « Next Oldest | Next Newest »

 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) - Claudio L. - 09-16-2015, 04:43 PM RE: Numbers within units (50g) - rprosperi - 09-17-2015, 12:38 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015, 02:44 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-16-2015, 10:21 PM RE: Numbers within units (50g) - Tugdual - 09-17-2015, 06:22 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-17-2015, 07:39 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015 01:25 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 02:56 AM RE: Numbers within units (50g) - Claudio L. - 09-18-2015, 01:01 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 09:28 PM RE: Numbers within units (50g) - brickviking - 09-18-2015, 10:04 PM RE: Numbers within units (50g) - Brad Barton - 09-19-2015, 02:39 AM RE: Numbers within units (50g) - Claudio L. - 09-19-2015, 05:49 PM RE: Numbers within units (50g) - Brad Barton - 09-22-2015, 02:56 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-22-2015, 07:37 AM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:46 AM RE: Numbers within units (50g) - Claudio L. - 09-22-2015, 05:43 PM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:53 AM RE: Numbers within units (50g) - Claudio L. - 09-23-2015, 07:03 PM RE: Numbers within units (50g) - Tugdual - 09-22-2015, 05:40 AM

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