I tried to convert currency into USD, but instead of converting into USD it's moving to decimal place.
My code is
Set @num = formatcurrency("123.45678", "en-Us")
My output: $123.46
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
formatCurrency formats the currency, i.e. it makes it "look the way a currency would be written in en-US format".
It is not connected to exchange rates >> You can expect no conversion. You'd have to look towards Sales Cloud and work off a field based on "multi-currency" logic. https://help.salesforce.com/s/articleView?id=sf.admin_currency.htm&type=5