Marc's Place


FN_E$BDR - Alphanumeric number to number/amount

Inclusion in RPG source




Input Parameters

@BDGFM (a15)
Field in which the alphanumeric amount must be stored prior to the call to E$BDR.
@BDGFL (d1)
When 1, signals E$BDR that the alphanumeric amount is formatted with decimals (either . or ,).

Output Parameters

@BDG (d13.2)
Field in which the formatted amount is stored after processing by E$BDR.

What it does

Formats an alphanumeric amount into a numeric field. Normal alphanumeric number fields (without decimals) can be converted to real numeric fields by using the MOVE statement.


 * Amount field = 6.2
 * Alpha amount  = '      40,00-'
 * Currency = NLG (= with comma)
C                     Z-ADD1         @BDGFL
C                     MOVE AMOUNT    @BDGFM           ('    40,00-')
C                     EXSR E$BDR
C                     Z-ADD@BDG      #FIELD
Go to download page
© 1997- Marc Vos (and others)   -   Privacy Statement   -    Contact Me

On this website, Google Analytics is used to track visitor statistics. These are anonymised data about the number of visitors, which pages they visit on this site, from which regions they visit, which web browsers they use, etc.. You will also see non-personalised ads via Google AdSense. Cookies from Paddle or Paypal are placed when you click on a 'Buy now!' or 'Donate!' button, and possible cookies from Disqus when you use that system to comment on one or more blogposts.
Privacy Statement