A Careful Balancing Act - The Daily WTF: "It is, sort of. Anyone who uses a float value to represent money in an accounting app should be fired immediately. However, what you use instead is usually a 'big decimal' data type that can represent numbers of arbitrary length and precision with an explicitly specified number of fractional digits. This is usually implemented by an array of ints to hold the data and another int to say how many fractional digits to keep. That way, you can use the same code for things like exchange rates, where you need a higher number of fractional digits, and don't have to worry about overflows."
avoiding the hazards of code redundancy since 93
The perfect is the enemy of the good.
My Fave Links- A gentle introduction to SQL
- Inquirer 7
- Planet Source Code
- DevX
- Programmers Heaven
- Free VB Code
- VB Accelerator
- VB Helper
- VB City
- VBNet Visual Basic Resource Center
- Blackbelt VB
- C# Station
- C# on Linux
- C# Tutorial
- gizmag
- undextrois' programming anecdotes and code snippets
- My latest blog
- IRC - Quakenet Server, #tayotayolang
- Skype Me
- Yahoo Message Me
- Mail Me
- Yahoo Call Me
- Web-based typing speed test
Previous Posts
- A Careful Balancing Act - The Daily WTF: "This jus...
- VB6 double and currency data type shortcomings. d...
- SQL Server database Banker's Rounding user defined...
- german impression of the philippines
- banker's rounding
- ceiling and floor implementation for vb6
- Intel & AMD vs. Users: "Athlon is a typical 'paral...
- favorite pet bug
- Slashdot | Pet Bugs?: "VB/VBA uses a commercial me...
- A Careful Balancing Act - The Daily WTF:There's no...
Friday, January 13, 2006
0 Comments:
Post a Comment
<< Home