Missing 'to_decimal' function for Int
|Assignee:||Alain Prouté||% Done:|
There is a 'abs_to_decimal()' function for Int, but no 'to_decimal()' thus there is one for all other numerical types.
#1 Updated by Alain Prouté almost 10 years ago
- Status changed from New to Assigned
The reason was that I did not want to impose some precise formatting for Ints. A default to_decimal may be added to basis.anubis:
public define String
if x < 0 then "-"+abs_to_decimal(x) else abs_to_decimal(x).
Note: I see it's already done in my version of basis.anubis.