Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
direwolf20
4mo ago
0 comments
Save
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
2 comments · 1 top-level
top
newest
oldest
1718627440
4mo ago
· 1 in thread
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
4mo ago
This is never not the case. You always need to specify the number of bits.
j
/
k
navigate · click thread line to collapse