How to make a Currency class from std.BigInt?
Ivan Kazmenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jan 30 12:54:17 PST 2015
On Friday, 30 January 2015 at 20:34:53 UTC, RuZzz wrote:
> What do I need to learn?
> c["BTC"]["N-01"] = 1.00000002;//Error: cannot implicitly convert
expression (1) of type double to
axfinance.api.currencies.Currencies
As I see it, there is no constructor in your class with a double
argument.
So you cannot assign a double (1.00000002)
to a Currencies struct (c["BTC"]["N-01"]).
More information about the Digitalmars-d-learn
mailing list