Xref: utzoo comp.sys.mac.programmer:11875 comp.sys.mac:47072 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!snorkelwacker!apple!kazim From: kazim@Apple.COM (Alex Kazim) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: StringToReal? Summary: Oh, Really Keywords: SANE, Script Mgr Message-ID: <38084@apple.Apple.COM> Date: 24 Jan 90 19:02:37 GMT References: <18429@dartvax.Dartmouth.EDU> <6122@internal.Apple.COM> <1132@cf-cm.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 23 In article <1132@cf-cm.UUCP> ralph@computing-maths.cardiff.ac.uk (Ralph Martin) writes: > >Byron Han, of Apple, writes: > >>In the SANE package, there is a routine, Str2Num which converts a string >>to a number. > >There's a problem with this, surely. Str2Num expects the decimal point to be >a point (full stop). In some countries, it may be a comma etc, so Str2Num >will not be appropriate, and more fancy things will be needed from the Script >Manager package. Really? I had always thought SANE took care of this (by looking at the INTL 0 resource for the various commas 'n things). In fact, IM Vol 5, p 302 says SANE routines will always return the correct result regardless of the script. I didn't write either SANE or Script Mgr, but we may have a bug here. ====================================================================== Alex Kazim, Apple Computer Bo knows programming ======================================================================