[quote:2oxr6vsf]but I need that result would have currency sign (symbol).[/quote:2oxr6vsf]
This is why we created the currency type field.
Please read this manual:
http://www.epesi.org/HelloWorld_-_part_ ... s#currency
Since version 1.6.0 there is Utils_CurrencyField_Value class which you should use. Examples:
$r = Utils_RecordBrowserCommon::get_record( ... );
$raw_value = $r['some_currency_field']; // 123.45__1 ($)
$raw_value_2 = $r['some_currency_field2']; // 45.45__2
$raw_value_3 = $r['some_currency_field3']; // 45.45__1
$val = Utils_CurrencyField_Value::from_string($raw_value);
$val2 = Utils_CurrencyField_Value::from_string($raw_value_2);
$val3 = Utils_CurrencyField_Value::from_string($raw_value_3);
$val->add($val2); // currency mismatch - throws exception
$val->add($val2, false); // do not report error - does nothing
$val->add($val3); // adds values, because currencies match -> 123.45 + 45.45
$val->add_amount(100); // adds amount
$val->format(); // $ 168.90 // in fact: $ 168.90 // 123.45 + 45.45
$val->to_string(); // 168.90__1
$val->set_amount($val->get_amount() * 10); // 10x more
Once you learn how to retrieve the currency field value along with the symbol etc. you will be able to manipulate it like multiply it by your "premium" rate, etc.
https://github.com/Telaxus/EPESI/blob/e ... /Value.php