This may not be what you want to hear, but I was always taught to store currency in the database as an integer, for example small int (6) unsigned not null which represents the lowest denomination coin i.e. cents.
I then query the database to recover the item, you need to convert the item so because I want two decimal places (100 cents to the dollar) the query includes “[[sale_price]] / 100, ' ') AS [[price]]”
But there always two or three ways to do things in yii…