Timeline for Best way to get whole number part of a Decimal number
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 22, 2023 at 3:00 | answer | added | Rusty Nail | timeline score: -1 | |
Jun 24, 2019 at 7:44 | answer | added | luka | timeline score: 1 | |
May 9, 2017 at 14:49 | answer | added | Mattheu Norwood | timeline score: 0 | |
Oct 17, 2015 at 13:00 | history | edited | Wai Ha Lee | CC BY-SA 3.0 |
Reduced capitalisation in title to aid readability
|
Oct 17, 2015 at 12:37 | answer | added | Amit Gohel | timeline score: 0 | |
Feb 5, 2010 at 0:54 | history | edited | Mark Carpenter |
added tag
|
|
Jan 26, 2009 at 14:07 | vote | accept | Yaakov Ellis | ||
Jan 26, 2009 at 13:34 | history | edited | Yaakov Ellis | CC BY-SA 2.5 |
made title more accurate, clarified situation.
|
Jan 26, 2009 at 13:32 | comment | added | Yaakov Ellis | Well, that is why this question is not as simple as it seems. I need this to work for very large numbers as reliably as it does for small numbers. However, "whole number" is more accurate than "int" - I will rephrase above. | |
Jan 26, 2009 at 13:32 | answer | added | Mark Carpenter | timeline score: 28 | |
Jan 26, 2009 at 13:26 | answer | added | Keith | timeline score: 5 | |
Jan 26, 2009 at 13:25 | comment | added | user1228 | You can't get the int part; you can get the whole number part and ditch the fractional part. The whole number part of a Decimal can easily overflow an int and either throw or wrap around, silently killing your code. | |
Jan 26, 2009 at 13:03 | answer | added | Noldorin | timeline score: 0 | |
Jan 26, 2009 at 13:03 | answer | added | user1228 | timeline score: 244 | |
Jan 26, 2009 at 12:59 | history | asked | Yaakov Ellis | CC BY-SA 2.5 |