mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
167 lines
4.2 KiB
XML
Executable File
167 lines
4.2 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="../Translation.xsd"
|
|
>
|
|
<!-- <Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="file://C:/Documents%20and%20Settings/kevin.glynn/My%20Documents/CS2JLibrary/Translation.xsd"
|
|
> -->
|
|
<Name>System.Math</Name>
|
|
<Methods>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Abs</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.abs(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Decimal</Return>
|
|
<Name>Floor</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Decimal</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.floor(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Floor</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.floor(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Floor</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.floor(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Int32</Return>
|
|
<Name>Min</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>a</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>b</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.min(${a},${b})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Min</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>a</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>b</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.min(${a},${b})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Int32</Return>
|
|
<Name>Max</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>a</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>b</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.max(${a},${b})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Max</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>a</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>b</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.max(${a},${b})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Decimal</Return>
|
|
<Name>Round</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Decimal</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.round(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Round</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>Math.round(${d})</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Decimal</Return>
|
|
<Name>Round</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Decimal</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>decimals</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>(Math.round(${d}*Math.pow(10,${decimals})) / Math.pow(10,${decimals}))</Java>
|
|
</Method>
|
|
<Method>
|
|
<Return>System.Double</Return>
|
|
<Name>Round</Name>
|
|
<Params>
|
|
<Param>
|
|
<Type>System.Double</Type>
|
|
<Name>d</Name>
|
|
</Param>
|
|
<Param>
|
|
<Type>System.Int32</Type>
|
|
<Name>decimals</Name>
|
|
</Param>
|
|
</Params>
|
|
<Java>(Math.round(${d}*Math.pow(10,${decimals})) / Math.pow(10,${decimals}))</Java>
|
|
</Method>
|
|
</Methods>
|
|
</Class> |