IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on December 03, 2005, 05:12:07 PM

Title: STR$ function
Post by: Parker on December 03, 2005, 05:12:07 PM
In my opinion, the STR$ function shouldn't return a space in front of the number. I think this is a convention with BASIC languages, but Aurora isn't BASIC, and there are some times when you don't want a space in front. It's much easier to do
writeln("There are "+str$(num,0)+" of them");
than to do
writeln("$"+ltrim$(rtrim$(str$(num,2))));
and the first way looks a lot cleaner too. Just my opinion, since I always end up having code that uses the second way and would like to use the first way instead.
Title: Re: STR$ function
Post by: Zen on December 03, 2005, 06:47:53 PM
I agree. It got a bit boring after a while in IBasic having to put LTRIM$ on to STR$

Lewis
Title: Re: STR$ function
Post by: Ionic Wind Support Team on December 03, 2005, 06:52:00 PM
I'll look into changing it for the next update.

Paul.
Title: Re: STR$ function
Post by: Zen on December 03, 2005, 07:22:49 PM
Thanks Paul

Lewis