Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LEN() for numeric expresions
Message
From
30/10/2002 23:35:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/10/2002 11:45:14
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716929
Message ID:
00717206
Views:
17
>Hi, I need to make a function wich returns the lenght of a numeric expresion. Lets say that I have a number, 456.4618 and I want to know how many integers and decimals positions there are. This function must return that there are 3 integers and 4 decimals.
>
>Any idea?

Just to add another one, even though we've already filled up the magic number of three (ways to do it). If there's a doubt about using Transform(), here's textmerge version:
?Textmerge("This preserves my <<123.345+0.000030>> decimals")

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform