For example:
//
double abc = 0.0000003534714494;
float xyz = (float) abc;
//
Brian
"Charles Tam" <Charl...@discussions.microsoft.com> wrote in message
news:A435C741-3C48-4BBE...@microsoft.com...
And also
float xyz= static_cast<float>( abc );
But you may want to check the value prior to casting to ensure you are not
losing any data...
--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.