Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/10/07 15:40
Read: times


 
#144317 - Choosing an appropriate order of magnitude
Responding to: ???'s previous message
Erik Malund said:
1,23 + 0.17 seems like a natural app for a standard slow and tedious 'standard' FP operation, but what is wrong with just doing 123+17 and inserting a decimal point onb the display, the user will not know the differennce.


Probably the most obvious example to illustrate this is the cash register:

If the numbers are $1.23 and $0.17 you could easily just do integer arithmetic in cents and, as you say, just move the decimal point on the display to have the answer back in dollars!
In fact, some cash registers do have the decimal point just printed on the casing and it's not even in the display at all!

and the same principle can be applied to other measures; eg,
http://www.8052.com/forum/read.phtml?id=108347
http://www.8052.com/forum/read.phtml?id=143938
http://www.8052.com/forum/read.phtml?id=92089

List of 16 messages in thread
TopicAuthorDate
FP FAQ edits needed            01/01/70 00:00      
   Choosing an appropriate order of magnitude            01/01/70 00:00      
   excuse me?            01/01/70 00:00      
      thx, I GOOFED            01/01/70 00:00      
         next version tannks Jan & Andy            01/01/70 00:00      
            scaling            01/01/70 00:00      
               Certainly not!            01/01/70 00:00      
   some inspiration            01/01/70 00:00      
   processor <-> controller, where is the difference?            01/01/70 00:00      
      the subtle differences are...            01/01/70 00:00      
         terminology taken too strictly            01/01/70 00:00      
            controller/processor removed, FAQ inserted.            01/01/70 00:00      
      Well, there's the "standard" definition ...            01/01/70 00:00      
         Of course, but makes this the one being a ...            01/01/70 00:00      
            let's put it in this way            01/01/70 00:00      
               quoting myself            01/01/70 00:00      

Back to Subject List