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.mmss->H
This program converts an h.mmss value to decimal hour format. For instance, 12.2000 (12hr 20min 00sec) would convert to 12.3333 hours.

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
6100Key in 100
7xMultiply the fraction by 100
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
12100Key in 100
13xMultiply the fraction by 100
14IntTake the integer portion
15Sto3Store the result (the seconds) in Mem3
16Rcl1Recall the hours
173600Key in 3600
18xMultiply the hours by 3600 (convert to seconds)
19Rcl2Recall the minutes
2060Key in 60
21xMultiply the minutes by 60 (convert to seconds)
22Rcl3Recall the seconds
23+Add the seconds portion to the minutes
24+Add the sec/min portion to the hours
253600Key in 3600
26/Divide the total seconds by 3600 (convert to decimal hours)
27r/sstop




(c) 2005 RarM_Software