Eng 6524 add format currency func

Do we really need to throw out of range based on the scaledValue? It might be in range after we divide by kMaxScaleFactor. Isn't it safe enough to test "whole" after the division?