assert(amountAfterPoint(1.456) == 3); assert(amountAfterPoint(0.00006) == 5);
Re: How to make a Currency class from std.BigInt?
RuZzz via Digitalmars-d-learn Sat, 31 Jan 2015 04:10:48 -0800
How to get amount of digit after point in a double for to get
integer from a double?
- How to make a Currency class from st... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency clas... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency ... Ivan Kazmenko via Digitalmars-d-learn
- Re: How to make a Curre... RuZzz via Digitalmars-d-learn
- Re: How to make a C... RuZzz via Digitalmars-d-learn
- Re: How to make a C... Colin via Digitalmars-d-learn
- Re: How to make a Currency clas... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency clas... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency ... Ivan Kazmenko via Digitalmars-d-learn
- Re: How to make a Currency clas... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency ... Colin via Digitalmars-d-learn
- Re: How to make a Curre... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency clas... RuZzz via Digitalmars-d-learn
- Re: How to make a Currency ... zeljkog via Digitalmars-d-learn