third_party_content:community:commentary:forums_nonworks:76dcb04f7d6b53c5852566a90018fa9e

Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 26 OCT 1998 12:32:50AM Steve Smith wrote:

Is there any magic REVG OCONV parameter to turn

-25 (physically on file) to -0.25 (external format)?

OCONV(-25,'MD2') produces -.25

I'd like to see a leading zero.

TIA

Steve

stsm@ozemail.com.au


At 26 OCT 1998 09:55AM Matt Sorrell wrote:

Steve,

In AREV 3.12, you can add the option 'L' to the OCONV function to force a leading zero.

For example:

OCONV(-25,"MD2L") would display -0.25.

HTH,

Matt Sorrell


At 27 OCT 1998 02:30AM Steve Smith wrote:

Thanks, Matt. While this works in AREV, REVG does

not accept this formatting option in OCONVs.


At 28 OCT 1998 04:55PM Stephen Witt-Thompson wrote:

Steve:

RevG doesn't have the leading '0' conversion but you can add a single line to your code or symbolic to swap '-.' with '-0.' For example:

ANS=OCONV('-25','MD2')

SWAP '-.' WITH '-0.' IN ANS

That will give you the leading zero but won't add a leading zero to numbers less than -1 (e.g., -1.25).

mailto:switt-thompson@spectrumhr.com

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/76dcb04f7d6b53c5852566a90018fa9e.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1