You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MYR/USD returning nil for now. This has been working for the past week.
func checkForex() (fr *big.Float) {
// Create a new Exchange instance and set USD as the base currency for the exchange rates and conversion
ex := exchange.New("USD")
// convert 1 USD to MYR
// fmt.Println(ex.ConvertTo("MYR", 1))
fr, err := ex.ConvertTo("MYR", 1)
if err != nil {
fmt.Println(err)
return
}
return (fr)
}
The text was updated successfully, but these errors were encountered:
MYR/USD returning nil for now. This has been working for the past week.
func checkForex() (fr *big.Float) {
// Create a new Exchange instance and set USD as the base currency for the exchange rates and conversion
ex := exchange.New("USD")
// convert 1 USD to MYR
// fmt.Println(ex.ConvertTo("MYR", 1))
fr, err := ex.ConvertTo("MYR", 1)
if err != nil {
fmt.Println(err)
return
}
return (fr)
}
The text was updated successfully, but these errors were encountered: