[Interest] how to convert double to int safely?

Till Oliver Knoll till.oliver.knoll at gmail.com
Tue Nov 25 11:24:28 CET 2014


Am 25.11.2014 um 09:46 schrieb André Somers <andre at familiesomers.nl>:
> 
> nus1998 schreef op 25-11-2014 09:33:
>> ...
>> the result is 451 and 450, but I want  'i' be 451 too, how?  
>> thanks in advance
>> ...
> This is not a Qt issue, it is a general computer issue. 

In a desperate attempt to still relate this question somehow to Qt one could have a look at the utility functions qRound (and qRound64) and friends, defined in the QtGlobal header.

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141125/5e5474b8/attachment.html>


More information about the Interest mailing list