----boundary-LibPST-iamunique-961861309_-_-
Content-type: text/plain
Robert,
>
> If I remember correctly the old version could format a number
> into a short string in such a way that the result looked
> correct, but was not. Loosing the last few characters can be
> benign, but if it converts 1.23E45 to 1.23E4 for example it is not.
>
> I think I reported this as a bug, and this patch is a
> solution, rather than being a problem.
>
You are right. That's exactly how I remember the case.
Wolfgang,
> When using Strings.RealToString, then the ARRAY OF CHAR for the output
> value must be at least 23 characters.
I don't think you can infer this from the new docu. In fact, the following
snippet is correct:
VAR s: ARRAY 4 OF CHAR;
Strings.RealToString(1, s)
In my opinion, the docu merely states in precondition 23 that s must be
large enough to hold the resulting string. The docu gives also some
conservative formulas that imply that s is indeed large enough. You are
allowed to actually allocate a shorter string as long as you make sure that
the character array can still hold the result.
Cheers
Marc
Oberon microsystems, Inc.
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-961861309_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibH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