>Probably not a lot, since Str with floats should mainly be used for
>debugging (you'd normally use CStr for anything shown to the user).
>Still, it makes debugging less pleasant.
I think to remember that both Str and CStr show now 15 digits.
So even if we would have used CStr, the result would be the same.
Maybe even worse if the user now sees 15 digits instead of 7...
But I can't confirm this - I haven't updated my license yet at home :-)
>>- what should i do regarding our 'reference files' (or more general:
>>doubles represented in a string)?
>That's the tricky bit, isn't it?
Doing the conversion all of my own, yes :-) Well, it's one of these
things that are 'just done for a simple use' once (using Str or CStr)
and
worked quite well for a long time until now...
....especially thinking of the example that David mentioned...
>both obviously have the potential to break people's code.
and making it quite difficult for people to find all the places
where it's not working as before. that's the most tricky part :-)
>If you care about how a value is presented you should use
>format, not STR.
the silly thing is that I only know now that I care how the
value is presented - I didn't need to care about it before,
because it behaved as documented :-)
So the most promising option (regarding the old reference files we
want to compare) now seems to search all the project for
- [MsgBox] Str(pi)
and replace it where needed to
- [MsgBox] Format(Pi, "##########.######")
But thanks for all opinions and hints - I'm somehow glad to know
that it's not just a silly mistake made by us (not using Format
in the first place), but an (undocumented) change of
behavior that potentially breaks a lot of people's code...
Juerg
_______________________________________
Roth Soft - LehrerOffice
Kellhofstrasse
CH-8476 Stammheim
E-Mail: juerg.raess@lehreroffice.ch
Internet: http://www.lehreroffice.ch/
_______________________________________
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|