Multiply Function [x]

08032018, 01:07 PM
Post: #4




RE: Multiply Function [x]
Hello Gamo,
what is the problem with the decimal numbers? Remove the decimal points, multiply the intergers and add the (correct) decimal point to the result. Most of the time decimal numbers are stored in a computer as floating point numbers with significand (digits) and exponent. For example in IEEE754 format x = m * 2^e where m is the significand and e is the exponent. Multiplication is done by multiplying the significands, adding the exponents and normalize the result. The multiplication of the significands could be done by a shift and add algorithm. Wikipedia 

« Next Oldest  Next Newest »

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