[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [patch] K{Int|Double}Validator + new classes
From: Thiago Macieira <thiago () kde ! org>
Date: 2006-10-26 20:20:07
Message-ID: 200610262220.17230.thiago () kde ! org
[Download RAW message or body]
Jaroslaw Staniek wrote:
>> What do you mean by "full precision" ?
>
>100%, absolute accuracy, unlike in floating point numeral system.
>The application of this data type is (no surprise) database, processing
> when _currency_ is involved and any data-entry systems.
>
>To make the decimal type fit cleanly to the mentioned
> KNumValidator<type> template, I propose introduction of a class (let's
> name it 'kdecimal') with all the needed operators implemented.
>
>The next step could be to take advantage of the accuracy of the new type
> and bring KDecimalNumInput and/or KDecimalSpinBox as an alternative to
> KDoubleSpinBox/KDoubleNumInput.
Given the limited use for this class and its validator, I'd recommend that
you:
1) make the KNumValidator<T> flexible for easy extension
2) make KDecimal and the validator class only appear in Kexi. If another
program needs it, we can consider moving it into KDELibs.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic