@@ -215,12 +215,12 @@ public FunctionBase VisitFALSE_fun(mathParser.FALSE_funContext context)
215215
216216 public FunctionBase VisitE_fun ( mathParser . E_funContext context )
217217 {
218- return new Function_Value ( Operand . Create ( Math . E ) , "E" ) ;
218+ return new Function_Value ( Operand . Create ( Math . E ) , "E" ) ;
219219 }
220220
221221 public FunctionBase VisitPI_fun ( mathParser . PI_funContext context )
222222 {
223- return new Function_Value ( Operand . Create ( Math . PI ) , "PI" ) ;
223+ return new Function_Value ( Operand . Create ( Math . PI ) , "PI" ) ;
224224 }
225225
226226 public FunctionBase VisitABS_fun ( mathParser . ABS_funContext context )
@@ -1919,7 +1919,7 @@ public FunctionBase VisitBracket_fun(mathParser.Bracket_funContext context)
19191919 public FunctionBase VisitNUM_fun ( mathParser . NUM_funContext context )
19201920 {
19211921 var d = decimal . Parse ( context . num ( ) . GetText ( ) , NumberStyles . Any , CultureInfo . InvariantCulture ) ;
1922- if ( context . unit ( ) == null ) { return new Function_Value ( Operand . Create ( d ) ) ; }
1922+ if ( context . unit ( ) == null ) { return new Function_Value ( Operand . Create ( d ) , context . num ( ) . GetText ( ) ) ; }
19231923 var unit = context . unit ( ) . GetText ( ) ;
19241924 return new Function_NUM ( d , unit ) ;
19251925 }
@@ -1962,7 +1962,7 @@ public FunctionBase VisitSTRING_fun(mathParser.STRING_funContext context)
19621962
19631963 public FunctionBase VisitNULL_fun ( mathParser . NULL_funContext context )
19641964 {
1965- return new Function_Value ( Operand . CreateNull ( ) , "NULL" ) ;
1965+ return new Function_Value ( Operand . CreateNull ( ) , "NULL" ) ;
19661966 }
19671967
19681968 public FunctionBase VisitPARAMETER_fun ( mathParser . PARAMETER_funContext context )
0 commit comments