Post Reply 
Rounding with units
11-12-2019, 06:17 AM
Post: #5
RE: Rounding with units
Hello,

Sorry, nor unit support for Round (and Trunc, they are the same function)... I will look at what it would take to add it...

Units are NOT strings... Units are an object (ie, a pointer to our generic object type, it could actually, tehcnically be anything)... and a list of triplets...
Each triplet (3 bytes) is a multiplicator or factor (as in k, m, G...) saved as a signed 8 bit number, normally a multiple of 3, an index in our unit list and a signed byte for the power (which is why unit powers are limited to 127)...

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Rounding with units - gregreenwood - 11-09-2019, 02:40 AM
RE: Rounding with units - Joe Horn - 11-09-2019, 06:25 AM
RE: Rounding with units - pinkman - 11-09-2019, 06:33 AM
RE: Rounding with units - Tim Wessman - 11-09-2019, 12:02 PM
RE: Rounding with units - cyrille de brébisson - 11-12-2019 06:17 AM



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