mirror of
https://github.com/netscrawler/changeAPI.git
synced 2026-12-04 21:04:19 +00:00
v0.1.1
This commit is contained in:
1 parent
5b11756af6
commit
4977599e87
5 files changed
+6
-7
No files matched your search
@@ -42,7 +42,6 @@ func (c *Converter) Convert(
|
||||
return 0, 0, fmt.Errorf("%s: %w", op, err)
|
||||
}
|
||||
|
||||
convertedAmount = uint32(float32(amount) * rate.Rate)
|
||||
|
||||
convertedAmount = uint32(float32(amount) / rate.Rate)
|
||||
return convertedAmount, rate.Rate, nil
|
||||
}
|
||||
Reference in new issue
Block a user