× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Try adding:

H DECEDIT('0.')

Then you can use:

yajl_addNum('number': %char(number));




Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #13 <https://www.bvstools.com/mailtool.html>: The ability
to use an IFS stream file as the body of the email (either text or html).

On Fri, Sep 20, 2019 at 9:09 AM Charles Wilt <charles.wilt@xxxxxxxxx> wrote:

All,

I am admittedly very rusty with edit codes and edit words, %char() is
usually all I every need.

Just to make sure I'm not missing something...

There doesn't appear to be an edit code that will give me
- left hand negative sign
- lead zero if number less than 1.00

packed(5:2) examples
"-0.95"
"-2.25"
"0.55"
"5.23"


Also, it doesn't appear that EDITW supports a left hand side negative sign?

Lastly, doesn't appear SQL can do it either...

Guess I'll need an alternative for a valid JSON number...

Thanks!
Charles
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.