April 24, 2024, 07:04:42 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


STR$ function

Started by Parker, December 03, 2005, 05:12:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

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.

Zen

I agree. It got a bit boring after a while in IBasic having to put LTRIM$ on to STR$

Lewis

Ionic Wind Support Team

I'll look into changing it for the next update.

Paul.
Ionic Wind Support Team

Zen