text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   main.cpp                                           :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: lfrasson <laisarena@gmail.com>             +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/10/20 00:28:50 by lfrasson          #+#    #+#             */
  /*   Updated: 2021/10/27 20:38:51 by lfrasson         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "Fixed.hpp"
  #include <iostream>
  
  int main( void ) 
  {
  	Fixed a;
  	Fixed const b( 10 );
  	Fixed const c( 42.42f );
  	Fixed const d( b );
  	
  	a = Fixed( 1234.4321f );
  	
  	std::cout << "a is " << a << std::endl;
  	std::cout << "b is " << b << std::endl;
  	std::cout << "c is " << c << std::endl;
  	std::cout << "d is " << d << std::endl;
  	std::cout << "a is " << a.toInt() << " as integer" << std::endl;
  	std::cout << "b is " << b.toInt() << " as integer" << std::endl;
  	std::cout << "c is " << c.toInt() << " as integer" << std::endl;
  	std::cout << "d is " << d.toInt() << " as integer" << std::endl;
  	std::cout << "a is " << a.toFloat() << " as float" << std::endl;
  	std::cout << "b is " << b.toFloat() << " as float" << std::endl;
  	std::cout << "c is " << c.toFloat() << " as float" << std::endl;
  	std::cout << "d is " << d.toFloat() << " as float" << std::endl;
  	return 0;
  }
  