Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Feature, Bug, or this just can't be true
Message
From
01/05/2001 11:02:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/05/2001 10:56:41
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00501962
Message ID:
00501967
Views:
18
>I have become the 'victim' of some unforseen behavior convering the 'VAL' function. The return from Val('1234567A') is 1234567 and the return from Val('1234567E') is 1234567 but the return from VAL('1234567E01') is 12345670. In other words, the val function interpets the letter 'E' followed by numbers as being scientific notation. Is this a feature or a bug?

It is a feature. 'E' has special meaning of exponantial as you discovered.
?10E4 && 100000 - 10*10^4
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform