C++ floating point to integer type conversions
What you are looking for is ‘type casting’. typecasting (putting the type you know you want in brackets) tells the compiler you know what you are doing and are cool with it. The old way that is inherited from C is as follows. If you had only tried to write You would have got a warning that … Read more