Click here to Skip to main content
15,888,579 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Been there done that... Pin
kmoorevs4-Oct-20 8:00
kmoorevs4-Oct-20 8:00 
GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 1:36
professionalSander Rossel5-Oct-20 1:36 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:37
Mircea Neacsu5-Oct-20 2:37 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 2:51
trønderen5-Oct-20 2:51 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 3:05
Mircea Neacsu5-Oct-20 3:05 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 3:13
trønderen5-Oct-20 3:13 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 2:02
professionalJörgen Andersson5-Oct-20 2:02 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 1:04
Mircea Neacsu5-Oct-20 1:04 
I apologize if I'm too dense or too nerdy: I don't see anything intrinsically wrong with storing a date as a float.

A 4-byte float value has 3 bytes for mantissa giving 2^24 values that can be correctly represented. That makes almost 17 million days or almost 46000 years. I'd argue that this is decent range for most general purpose applications.

It might be unusual or not keeping with established rules, but is not breaking any (computer) law.
Mircea

GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 1:33
professionalSander Rossel5-Oct-20 1:33 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:01
Mircea Neacsu5-Oct-20 2:01 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 2:06
professionalJörgen Andersson5-Oct-20 2:06 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 2:33
Mircea Neacsu5-Oct-20 2:33 
GeneralRe: Been there done that... Pin
trønderen5-Oct-20 3:12
trønderen5-Oct-20 3:12 
GeneralRe: Been there done that... Pin
Mircea Neacsu5-Oct-20 3:41
Mircea Neacsu5-Oct-20 3:41 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 3:45
professionalJörgen Andersson5-Oct-20 3:45 
GeneralRe: Been there done that... Pin
Jörgen Andersson5-Oct-20 3:43
professionalJörgen Andersson5-Oct-20 3:43 
GeneralRe: Been there done that... Pin
obermd5-Oct-20 3:38
obermd5-Oct-20 3:38 
GeneralRe: Been there done that... Pin
Sander Rossel5-Oct-20 4:05
professionalSander Rossel5-Oct-20 4:05 
GeneralWeekend Thought of the day Pin
Sandeep Mewara3-Oct-20 21:48
mveSandeep Mewara3-Oct-20 21:48 
GeneralRe: Weekend Thought of the day Pin
Richard Andrew x644-Oct-20 2:21
professionalRichard Andrew x644-Oct-20 2:21 
GeneralRe: Weekend Thought of the day Pin
kmoorevs4-Oct-20 7:18
kmoorevs4-Oct-20 7:18 
GeneralRe: Weekend Thought of the day Pin
Richard Andrew x644-Oct-20 9:12
professionalRichard Andrew x644-Oct-20 9:12 
GeneralRe: Weekend Thought of the day Pin
DRHuff4-Oct-20 4:31
DRHuff4-Oct-20 4:31 
GeneralRe: Weekend Thought of the day Pin
Amarnath S4-Oct-20 21:34
professionalAmarnath S4-Oct-20 21:34 
GeneralChanging EULAs - who bothers? Pin
dandy723-Oct-20 3:08
dandy723-Oct-20 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.