/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk
19 by Gustav Hartvigsson
Added Round Up and Round Down function classes.
1
using VQDR.Expression;
2
3
public class VQDR.Expression.RoundDownFunctionToken : FunctionToken {
4
  public RoundDownFunctionToken () {  base ();  }
5
  construct {
6
    mandatory_num_child = 1;
7
  }
8
  
9
  public override void evaluate_self (Context instance) throws GLib.Error {
10
    Token param = get_child (1);
11
    
12
    param.evaluate_self (instance);
13
    
14
    result_value = param.result_value.round_down ();
15
    result_max_value = param.result_max_value.round_down ();
16
    result_min_value = param.result_min_value.round_down ();
17
    
26 by Gustav Hartvigsson
* Fixed the "allowed function token type" map...
18
    result_string = CH_RDN_OP + param.result_string + CH_RDN_CL;
19 by Gustav Hartvigsson
Added Round Up and Round Down function classes.
19
  }
20
  
21
}