Top Navigational Bar

Macros - Adding Numbers With A Decimal Using
DocumentID: 654139
Revision Date: 29-Feb-96 8:29:28 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: When using an {ASSIGN} string to calculate numbers, numbers with decimals will not calculate. This is because the program reads the decimal as a period. The following macro works around the feature by calculating any number by a specified set number (200.50):

{Search}.{Search}{Left}{Block}{Word Left}{Macro Commands}32{Enter}
{ASSIGN}1~{VARIABLE}1~*100~
{Home}{Home}{Home}{Up}
{Search}.{Search}{Block}{Word Right}{Macro Commands}32{Enter}
{ASSIGN}2~{VARIABLE}2~+50~
            (50 represents the numbers to the left of the decimal point)
{ASSIGN}3~{VARIABLE}1~+200~
            (200 represents the numbers to the right of the decimal point)
{ASSIGN}4~{VARIABLE}3~+{VARIABLE}2~~
{VARIABLE}4~{Left}{Left}.{Right}{Right}

Note: This macro will only work if there is a set number to calculate with and a beginning number is on the screen.

This information should be written up as an enhancement. If you continue to receive calls on this, please contact your team leader who can take the necessary steps to include the problem on the common call list.

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.