Eng 6524 add format currency func

one * denominator is just denominator. This can be simplified in two places