VDouble.GetString return formatted string 15 char long

Bart Pietercil bart.pietercil at cognosis.be
Tue Jun 14 01:56:42 CDT 2011


Hi,

that would be precision and scale

approximate_numeric_type
    :    FLOAT  [ ( precision [, scale ] ) ] 
    |    DOUBLE [ ( precision [, scale ] ) ]

However no more explanation is to be found . An explanation (maybe with an example) would come in handy.

tia,


Bart Pietercil
CTO Cognosis NV

On 14 Jun 2011, at 07:59, Ruslan Zasukhin wrote:

> On 6/12/11 2:03 PM, "Bart Pietercil" <bart.pietercil at cognosis.be> wrote:
> 
>> No, we've been bitten also (in vReports, doubles show up the same way,
>> annoying).
>> 
>> Bart Pietercil
>> CTO Cognosis NV
>> 
>> On 11 Jun 2011, at 11:25, Francois Van Lerberghe wrote:
>> 
>>> Hello,
>>> 
>>> Using V4RB 4.3 mac_ub, if you store 12.345 in a VDouble,
>>> VDouble.GetString return "      12.345000" (15 char long).
>>> 
>>> In the previous versions (v1, v2, v3.5), VDouble.GetString gave me "12.345".
>>> 
>>> This change broke a lot of my existing code.
>>> Am I the only one who is affected by this change ?
>>> Is it a bug or is it intentional ?
>>> Can I modify this ?
> 
> DOUBLE and FLOAT fields
> 
> More than year or two have additional properties
> 
>    scale and ...
> 
> I believe they control how value is converted into string.
> 
> 
> Ivan?
> 
> 
> -- 
> Best regards,
> 
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
> 
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
> 
> [I feel the need: the need for speed]
> 
> 
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina




More information about the Valentina mailing list