DAVID
Friday, 9 August 2013
How to cast a struct of 2 uint into a double
How to cast a struct of 2 uint into a double
I have a struct like below:
struct pts_t
{
uint32_t lsb;
uint32_t msb;
};
I would like cast that into a double. Is it safe of directly write:
pts_t t;
double timestamp = t;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment