2024-06-07 14:07:01 +04:00

7 lines
188 B
Swift

import Foundation
func formatUsdValue(_ value: Int64, rate: Double) -> String {
let formattedValue = String(format: "%0.2f", (Double(value)) * rate)
return "$\(formattedValue)"
}