[patch] K{Int|Double}Validator + new classes

Thiago Macieira thiago at kde.org
Thu Oct 26 21:20:07 BST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061026/e1f1edd9/attachment.sig>


More information about the kde-core-devel mailing list