You left out the secondary message. You have asked for this number to be
formatted into 7 spaces, but it requires 8. The number is not large enough
to trigger scientific notation to be used under the default digits setting.

Rick

On Sat, Jan 23, 2021 at 12:01 PM WalterPachl via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> For some reason I am exploring the world of the FORMAT bif and came across
> this surprising result
>
> Signal on Syntax
> back=l1; Say format(34e4,7)--> 340000
> l1: back=l2; Say format(34e5,7)-->3400000
> l2: back=l3; Say format(34e6,7)-->Syntax raised in line 4 rc=93 Incorrect
> call to method
> l3: back=l4; Say format(34e7,7)-->Syntax raised in line 5 rc=93 Incorrect
> call to method
> l4: back=l5; Say format(34e8,7)--> 3.4E+9
> l5: Say format(34e9,7)--> 3.4E+10
> Exit
> syntax:
> Say 'Syntax raised in line' sigl
> Say 'rc='rc
> Say errortext(rc)
> Signal On Syntax
> Signal value(back)
>
> I would have xpected 3.4E+7 and 3.4E+8, respectively
>
> Regards
>
> Walter
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to