Re: Currency and Number data type
From: Mary Ann (anonymous_at_discussions.microsoft.com)
Date: 03/24/04
- Next message: Dan Guzman: "Re: WHERE clause applies to right-hand table of LEFT JOIN"
- Previous message: Michel Walsh: "Re: Weeknumber (Week of Year)"
- In reply to: John Vinson: "Re: Currency and Number data type"
- Next in thread: John Vinson: "Re: Currency and Number data type"
- Reply: John Vinson: "Re: Currency and Number data type"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 03:47:43 -0800
I know I have only just replied to your very helpful
answer but having read it again I realise I still have a
couple of points I would like to sort out. I know you've
been very helpful so far but would really appreciate just
a little more!
You refer to Float data type - this has confused me
because from your earlier answer I understood that Single
and Double used the "floating decimal point". What is
Float - is it the same as the Decimal option when looking
at Number data type size?
You also say you have to use Double or Float if you want
more than 4 decimal places - could you not use Single too?
What is the full "heavy sequence"? Is it Byte, Integer,
Long Integer, Single, Double, Decimal?
In hope that you have time and patience to reply!
Mary Ann
>-----Original Message-----
>On Tue, 23 Mar 2004 04:32:39 -0800, "Mary Ann"
><anonymous@discussions.microsoft.com> wrote:
>
>>Thank you John. At last I understand these weird
results
>>a bit more.
>>
>>Does this mean that if I am working with "normal"
numbers
>>rather than numbers the size cosmologists need I would
be
>>better to use Currency data type and format it as say
>>Standard?
>
>It depends on what you need. If four decimal places are
enough, you
>can use Currency. If you need five or more, you've got
no choice -
>Double or Float.
>
>>If that is so, what do I do when I have created a
>>calculated field - I can't set a data type only a
>>format. Do calculated fields have data types and if so
>>what is it - is it floating decimal like Number?
>
>It depends on the calculation. Addition and
multiplication, I'm pretty
>sure, will use the "heaviest" datatype that goes into
the calculation;
>that is, an Integer plus a Float plus a Double will give
a Double
>result. However, division will always give a Double.
>
>What you can do is to wrap the expression in a type-
conversion
>function: e.g. CCur([a] / [b]) will divide a by b,
giving a Double
>result, but that will then be converted to Currency
datatype.
>
>
> John W. Vinson[MVP]
> Come for live chats every Tuesday and Thursday
>http://go.compuserve.com/msdevapps?loc=us&access=public
>.
>
- Next message: Dan Guzman: "Re: WHERE clause applies to right-hand table of LEFT JOIN"
- Previous message: Michel Walsh: "Re: Weeknumber (Week of Year)"
- In reply to: John Vinson: "Re: Currency and Number data type"
- Next in thread: John Vinson: "Re: Currency and Number data type"
- Reply: John Vinson: "Re: Currency and Number data type"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|