.CONVERT SPLIT NUMBER

This subroutine splits a number into it's whole number and fractional parts.


Usage:

    PASS        <whole_number>            FIELD           SHARE? Y
    PASS        <fractional_part>         FIELD           SHARE? Y
    PASS        <number_to_split>         FIELD           SHARE? N
    GOSUB   --- .CONVERT SPLIT NUMBER
     *       check for errors
    IF      --- .CONVERT SPLIT NUMBER     NE

Description:

This subroutine splits a number into it's whole number and fractional parts. All parameters are required, if any are missing the subroutine will CANCEL.

<whole_number> is the whole number part <number_to_split> (Required). This must be PASSed with Share "Y" to return a result.

<fractional_part> is the fractional part <number_to_split> (Required). This must be PASSed with Share "Y" to return a result.

<number_to_split> is the number to be split. This must contain valid numeric characters (Required).

Comments:

Read what other users have said about this page or add your own comments.


-- PeteBrower - 2011-08-12

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2012-02-03 - JeanNeron
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback