Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
direwolf20
1mo ago
0 comments
Share
Your problem demands a certain number of bits. Counting milliseconds in a month needs 32 bits. It's not just a random number.
0 comments
default
newest
oldest
1718627440
1mo ago
Then you use an integer type that has at 32-bits? uint32_fast_t for computation, uint32_least_t for storage, if you are resource constrained.
direwolf20
OP
1mo ago
This is never not the case. You always need to specify the number of bits.
j
/
k
navigate · click thread line to collapse