float to int les deux methodes fonctionnent
This commit is contained in:
@@ -9,6 +9,16 @@ int main( void ) {
|
||||
Fixed b(1000.5979f);
|
||||
std::cout << '\n';
|
||||
Fixed c(-1105.979f);
|
||||
std::cout << '\n';
|
||||
Fixed d(3726.7623683f);
|
||||
std::cout << '\n';
|
||||
Fixed e(4328239.384271721f);
|
||||
std::cout << '\n';
|
||||
Fixed f(1.11117f);
|
||||
std::cout << '\n';
|
||||
Fixed g(42.42f);
|
||||
std::cout << '\n';
|
||||
Fixed h(1234.4321f);
|
||||
|
||||
// Fixed a;
|
||||
// Fixed const b( 10 );
|
||||
|
||||
Reference in New Issue
Block a user