Multiply Function [x]
|
08-03-2018, 09:27 AM
(This post was last modified: 08-03-2018 09:32 AM by Gamo.)
Post: #1
|
|||
|
|||
Multiply Function [x]
I'm wondering what algorithm is use in calculator for the multiply function.
So I came up with the basic whole number multiplication by using the adding up method. 7 x 4 = (7 + 7 + 7 + 7) = 28 Then I came up with this program to do the multiply function. This program will multiply two whole numbers and do multiply with the first whole number with decimal like (21.75 x 5) This program will not give correct result when multiply both decimal numbers like (10.2 x 11.2) Example: 6903 x 103 6903 [ENTER] 103 [R/S] ---> 711009 Step can be reverse: 103 [ENTER] 6903 [R/S] ---> 711009 Program: Multiply Function using HP-12C Code:
Is there any other more efficient way to do this better and faster? Anyone get a better solution so that this can do multiplication with both decimal numbers like (123.45 x 12.34) Thank You Gamo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)