IonicWind Software

Announcements => User Offerings => Topic started by: Andy on May 22, 2016, 05:13:00 AM

Title: Len and Mid$ for numbers
Post by: Andy on May 22, 2016, 05:13:00 AM
Here I've created the equivalent of LEN and MID$ for numbers, which I think you'll find very very useful, and I wish I'd had these functions to hand a long time ago.

SMLenN - gets the length of a number.
SMMidN - gets the Nth number of the number.
SMDP - gets the decimal point position of the number.

As always, copy the .lib to your libs folder, and the .inc to your includes folder.

Let me know if this is useful please...

Thanks,
Andy.
:)
Title: Re: Len and Mid$ for numbers - New download.
Post by: Andy on May 24, 2016, 07:49:17 AM

I've added in some more number functions for you, and extended the SMMidN function to work like MID$,
that is, a start position, and the length required.

SMMidN           - (number, start position, for X length of the number)
SMValBeforeDP - gets the value of a number before the decimal point
SMValAfterDP   - gets the value of a number after the decimal point

I've included the new help file for this latest StringMap version (10.02).

Attached is the zip file.

As always, copy the .lib to your libs folder, and the .inc to your includes folder.

You can then compile Numbers.iwb

Thanks,
Andy.
:)
Title: Re: Len and Mid$ for numbers
Post by: Egil on May 24, 2016, 08:09:27 AM
Thanks for sharing Andy!

Quoteand I wish I'd had these functions to hand a long time ago

So do I, but if I ever get around to make the remote control software for my Yaesu FT-717ND portable low-power radio transceiver I've been thinking of so long, these routines appears to be tailormade for that purpose.


Regards,
Egil.