Help


from Wikipedia
« »  
Although, and belong to different data types, they will be automatically converted to equal data types each time a comparison or assignment is executed.
This behavior should be used with caution, as unintended consequences can arise.
Data can be lost when floating-point representations are converted to integer representations as the fractional components of the floating-point values will be truncated ( rounded towards zero ).
Conversely, converting from an integer representation to a floating-point one can also lose precision, since the floating-point type may be unable to represent the integer exactly ( for example, might be an IEEE 754 single precision type, which cannot represent the integer 16777217 exactly, while a 32-bit integer type can ).
This can lead to unintuitive behavior, as demonstrated by the following code:

1.900 seconds.