math_adapter 0.3.8

Collection of math adapters to decouple your application from math libraries' implementations and to provide both inter-libraries compatibility and affordable exchangeability.
Documentation

///
/// Required to convert integets to floats.
///

#[ macro_export ]
macro_rules! num
{

  () =>
  {
  };

  ( $num : expr ) =>
  {
    num_traits::cast::< _, T >( $num ).unwrap()
  };

  ( $( $num : expr ),+ ) =>
  {(
    $( num_traits::cast::< _, T >( $num ).unwrap() ),+
  )};

}