× 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.



Well, I have to admit I had the same issue a while back and posted my
response here:

https://www.fieldexit.com/forum/display?threadid=456

Thankfully someone else replied with the H spec code that worked even
better. :)

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

Thanks Brad!

I didn't even consider DECEDIT h-spec..

Charles

On Fri, Sep 20, 2019 at 8:14 AM B Stone <bvstone@xxxxxxxxx> wrote:

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.