Join us, let's discuss Web3, crypto and blockchain technology.

Standard Type Conversion

In addition to user-definable type conversions, the compiler also performs standard type conversions. In the previous example, an int variable is assigned to a euro object by this method. Example: int wholePart = oneEuro; This first converts a Euro object to double and then to int, that is, the cents are truncated.



dp

Read next...

Mountains
Hivefirm
Hivefirm is a future focused community for all things Web 3 and crypto-related content

Follow us

Discover more of what matters to you