Article

From:
To:
Dmitriy Nagirnyak
Subject:
Re: Rounding in OCL
Newsgroup:
borland.public.delphi.modeldrivenarchitecture.eco

Re: Rounding in OCL

>> Just to help clarify the argument, are you referring to rounding of
>> decimal fraction variables like varDecimal or BCD? Or binary fraction
>> variables like single, double, and extended?

"Dmitriy Nagirnyak" <nagir_argocomputing_com_au> wrote
> Decimal and Double.

Dmitriy, =20

To further clarify from where you are coming, are you aware=20 that can double cannot exactly represent numbers like 0.1? Also using doubles, how do you code the rounding to get a=20 number like 1.205 to round to two decimal fractions according=20 to the symmetric arithmetic rounding rule?
Regards, JohnH
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Sat, 18 May 2024 07:19:03 UTC
Copyright © 2009-2024
HREF Tools Corp.