Eng 6524 add format currency func

the s_maxInt64AsDecimal is TTInt(INT64_MAX) * kMaxScaleFactor. So we check the value before calculation.