![]() |
Macro - Calculator To Multiply Numbers Highe |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer's calculator macro does not multiply numbers higher than 47 * 47. The macro does give the correct result (a negative number) if they use the three digit decimal. Also, the macro for the calculator does not divide with numbers four digits or more. For example, 3000 divided by 3000 should be 1, but instead it's 182,487. Solutions: The calculator macro will change the 47.000 to 47,000 for multiplying and dividing functions and then the macro will insert the proper decimal point. Thus, if you went higher, like 48 * 48, then that would be to the macro 48,000 times 48,000 equaling 2,304,000,000. The highest possible number for WordPerfect 5.1 macros is 2,147,483,647. This is because mathematic operations in macros cannot handle decimal places. For example, if the macro was set to three fixed decimal places and 34.600 and 34.800 were multiplied, the macro would first convert it to 34600 and 34800 giving a number of 1,204,080,000. Then, the macro would put in a fake decimal place in 6 places to the right returning a number of 1,204.080. |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |