[TYPO3-dev] Using moneylib ext to dipslay a value as a price
ries van Twisk
typo3 at rvt.dds.nl
Wed Jul 4 14:49:43 CEST 2007
Hey Brian,
are you saying that you store a valie of 1.000,00 (, = decimal
seperator) as 100000 in the database because you use a int(11) there?
If so, wouldn't it not better to use decimal(8,2) and leave the value
like it is?
I never worked with moneylib so that is all I can say about this..
Ries
> Hi
>
> Im want to use the moneylib format function to convert value to
> currency. So 1000 will be displayed as kr. 1.000,00.
>
> The problem is that the format function requires a value like
> 100000 to
> convert to 1.000,00.
>
> My database field has to be an int(11) and my field for entering the
> value is setup with eval => "double2,nospace" to display 1000.00 in
> the
> backend.
>
> Now, how do I tell TYPO3 to convert 1000.00 to 100000 when it inserts
> the value into the database?
>
> Hope you understand my problem.
>
> /Brian
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list