Created
August 19, 2017 04:27
-
-
Save odeblic/9187788df73a476faa5d033d0454245a to your computer and use it in GitHub Desktop.
Financial tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Price | |
{ | |
public: | |
Price(double val) | |
{ | |
mValue = val * 1000; | |
} | |
operator double()() | |
{ | |
return val / 10000.; | |
} | |
private: | |
std::uint64_t mValue; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment