View previous topic :: View next topic
|
Author |
Message |
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
Hi,
I am new to easytrieve and would like to know the declaraion for Float
Say for example:
we give A for characters, P for packed decimal, B for Binary etc.
Similarly what would it be for floating point variables...?
Cheers,
Rarvins |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
We used N for them
|
|
Back to top |
|
|
rarvins
New User
Joined: 24 Jan 2007 Posts: 59 Location: Texas
|
|
|
|
Hi,
I shall try out N, but I just had a basic doubt.I thot that N was only for integers.But since a float value can contain decimal points as well, will ir work....? Correct me if I am wrong
Cheers,
Rarvins |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi rarvins,
Yeap it will work
As i specify VAR-RATE will take 7 bytes 4 befor decimal & 3 after decimal
its like DECIMAL(7,3). |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Just what is your definition of "float"?
The N is packed decimal. |
|
Back to top |
|
|
|