fuzzy math

perfect for what i need at the moment.

>> s = "$4.2 million USD USA Dollars".to_currency_i
=> 4000000

note: this is neither a bug nor a problem. what’s important to realize is that we need to evolve beyond using computers for raw numerical operations. software can provide rough guidance that doesn’t incur a high cognitive load. try making your software for people. you’ll be pleasantly surprised at what you can accomplish without relying on precision.


About this entry