<?xml version="1.0" encoding="utf-8"?>
<!--

    This file is

    Copyright 2007,2008,2009,2010 Rustici Software, LLC
    Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)

-->
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
  <Imports />
  <Java>Math</Java>
  <Name>System.Math</Name>
  <Uses />
  <Inherits> <Type>System.Object</Type> </Inherits>
  <Methods>
    <Method>
      <Imports />
      <Java>Math.abs(${d})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Abs</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.floor(${d})</Java>
      <Params>
        <Param>
          <Type>System.Decimal</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Floor</Name>
      <Return>System.Decimal</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.floor(${d})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Floor</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.floor(${d})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Floor</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.min(${a},${b})</Java>
      <Params>
        <Param>
          <Type>System.Int32</Type>
          <Name>a</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>b</Name>
        </Param>
      </Params>
      <Name>Min</Name>
      <Return>System.Int32</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.min(${a},${b})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>a</Name>
        </Param>
        <Param>
          <Type>System.Double</Type>
          <Name>b</Name>
        </Param>
      </Params>
      <Name>Min</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.max(${a},${b})</Java>
      <Params>
        <Param>
          <Type>System.Int32</Type>
          <Name>a</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>b</Name>
        </Param>
      </Params>
      <Name>Max</Name>
      <Return>System.Int32</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.max(${a},${b})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>a</Name>
        </Param>
        <Param>
          <Type>System.Double</Type>
          <Name>b</Name>
        </Param>
      </Params>
      <Name>Max</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.max(${a},${b})</Java>
      <Params>
        <Param>
          <Type>System.Number</Type>
          <Name>a</Name>
        </Param>
        <Param>
          <Type>System.Number</Type>
          <Name>b</Name>
        </Param>
      </Params>
      <Name>Max</Name>
      <Return>System.Number</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.round(${d})</Java>
      <Params>
        <Param>
          <Type>System.Decimal</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Round</Name>
      <Return>System.Decimal</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.round(${d})</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>d</Name>
        </Param>
      </Params>
      <Name>Round</Name>
      <Return>System.Double</Return>
    </Method>
    <Method>
      <Imports />
      <Java>Math.round(${s})</Java>
      <Params>
        <Param>
          <Type>System.Single</Type>
          <Name>s</Name>
        </Param>
      </Params>
      <Name>Round</Name>
      <Return>System.Single</Return>
    </Method>
    <Method>
      <Imports />
      <Java>(Math.round(${d}*Math.pow(10,${decimals})) / Math.pow(10,${decimals}))</Java>
      <Params>
        <Param>
          <Type>System.Decimal</Type>
          <Name>d</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>decimals</Name>
        </Param>
      </Params>
      <Name>Round</Name>
      <Return>System.Decimal</Return>
    </Method>
    <Method>
      <Imports />
      <Java>(Math.round(${d}*Math.pow(10,${decimals})) / Math.pow(10,${decimals}))</Java>
      <Params>
        <Param>
          <Type>System.Double</Type>
          <Name>d</Name>
        </Param>
        <Param>
          <Type>System.Int32</Type>
          <Name>decimals</Name>
        </Param>
      </Params>
      <Name>Round</Name>
      <Return>System.Double</Return>
    </Method>
  </Methods>
  <Properties />
  <Events />
  <Indexers />
  <Constructors />
  <Fields />
  <Casts />
  <UnaryOps />
  <BinaryOps />
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>gTetkrvTe1YbqV/4LDgOCCGHB2Q=</DigestValue></Reference></SignedInfo><SignatureValue>LlG+sl3PcrJut3uf2Qmnyi4d77gxtJWUTqWASMA8XzlNulo+7ht3/KFL6QmO6PnQAVobEky9xqMQ1V3TxNXFMDYcOlQYKUAEDzV+4ABNJoR8jGdo+NdRH4ybGMxWDC+RRYuQ2ML6DpQBUsKuqiMYUi876xBtYwsa3LV9nBhEKSQ=</SignatureValue></Signature></Class>