Skip to content

Instantly share code, notes, and snippets.

@odeblic
Created August 19, 2017 04:27
Show Gist options
  • Save odeblic/9187788df73a476faa5d033d0454245a to your computer and use it in GitHub Desktop.
Save odeblic/9187788df73a476faa5d033d0454245a to your computer and use it in GitHub Desktop.
Financial tools
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