float to int les deux methodes fonctionnent

This commit is contained in:
hugogogo
2022-02-14 17:17:19 +01:00
parent 051936c06e
commit 9036ded700
3 changed files with 25 additions and 45 deletions

View File

@@ -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 );