Quintiq file version 2.0
#parent: #root
Method FormatRealToString (
  Real value
) as String id:Method_ApplicationMacroPlanner_FormatRealToString
{
  #keys: '[134266.2.76720710]'
  Body:
  [*
    // Round real to global number of decimals and parse to string
    value := value.Round( MacroPlan.GlobalParameters_MP().NumberOfDecimals() );
    conv := RealToString::ISOConverter();
    converted := guard( conv.Convert( value ), '0' );
    
    return converted;
  *]
  Declarative: true
}
