Xref: utzoo comp.sys.mac.programmer:11871 comp.sys.mac:47068 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon Watte) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: StringToReal? Message-ID: <2795@draken.nada.kth.se> Date: 23 Jan 90 21:02:01 GMT References: <18429@dartvax.Dartmouth.EDU> <6122@internal.Apple.COM> <1132@cf-cm.UUCP> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 18 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 Well, you could always parse the string, look for the "comma, point, whatever" symbol and change it for the dot. I believe the symbol(s) to look for are easily obtainable from itl or similar resources. (No IM nor TechNotes on this Unix system :-) h+ -- --- Stay alert ! - Trust no one ! - Keep your laser handy ! --- h+@nada.kth.se == h+@proxxi.se == Jon Watte longer .sig available on request