On 11/6/06, Tristan Leask <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> Does anyone know how VAL() works?  Why is it that when you do a
> VAL('701E960') you get a numeric overflow error, but when you do
> VAL('701D960'), you don't?
>
> Cheers
>
"Val() converts nearly all character strings to numbers—the only
problem is that some of these numbers may be beyond the range FoxPro
can actually work with. Val("1E+307") creates a numeric without an
error message, but this value cannot be stored in a numeric, double,
float or integer field, nor can you do much useful processing on it.
If you are converting character data to numeric in your applications,
you need to range-check the result to ensure you are working with
legitimate numbers."

Hacker's to the rescue <s>

A+
jml

> [EMAIL PROTECTED]
> www.marinesoftware.co.uk
>
> --------------------------------------------------------------------------------------------------------------
> This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in 
> writing by Marine Software Limited,
> this communication and attachments are to be treated as confidential
> and the information in it may not be used or disclosed except for the
> purpose for which it was sent.
> If you are not the intended recipient of this  communication  you should
> destroy it without copying, disclosing or otherwise using its contents.
> Please notify the sender immediately of the error.
> [EMAIL PROTECTED]
> ------------------------------------------------------------------------------------------------------------------
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.
  • VAL() Tristan Leask
    • Re: VAL() Jean Laeremans

Reply via email to