Bob's Calculator Version 2.0 Updated: 2005.02.01  
  Home     Main screen     Forms     Programming     Customization  
   Overview       Run       View       Add/Edit       Commands       Samples   

Sample programs

Dice
H->h.mmss
h.mmss->H
H->H.mmss
This program converts a decimal hour value to h.mmss format. For instance, 5.25 hours would convert to 5hr 15min 00sec, or 5.1500.

StepLblActionNote
1RPNSet the program to run in RPN mode
2EnterPush the value onto the stack
3IntTake the integer portion
4Sto1Store the result (the hours) in Mem1
5-Subtract the integer from the original, leaving the fraction
660Key in 60
7xMultiply the fraction by 60
8EnterPush the result onto the stack
9IntTake the integer portion
10Sto2Store the result (the minutes) in Mem2
11-Subtract the integer from the original, leaving the fraction
1260Key in 60
13xMultiply the fraction by 60
14IntTake the integer portion
15Sto3Store the result (the seconds) in Mem3
16Rcl1Recall the hours
17Rcl2Recall the minutes
18100Key in 100
19/Divide the minutes by 100
20Rcl3Recall the seconds
2110,000Key in 10000
22/Divide the seconds by 10,000
23+Add the seconds portion to the minutes
24+Add the sec/min portion to the hours
25r/sstop




(c) 2005 RarM_Software