"""
from decimal import Decimal
def test():
result = ""
try:
# 计算公式:symbol_left + 格式化美元价 * value + symbol_right
# 公式参数说明:
# 格式化美元价: usaPrice的amount
# decimal_place: 是保留多少小数位
# dec_point: 是小数点符号
# thousands_sep:是千位分割符号
# 获取格式化美元价
usa_price_amount = Decimal('59.24')
value = Decimal('160.234')
symbol_left = '₹'
symbol_right = ""
decimal_place = '2'
dec_point = '.'
thousands_sep = ','
calculate_decimal = usa_price_amount * value
# 保留几位小数
save_decimal_place_str = "%.{0}f".format(int(decimal_place)) % (
calculate_decimal)
# 逗号
comma_str = ","
# 点号
dot_str = "."
if thousand