[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] [ATL] Re: Syntax for Math.pow() funtion in ATL

Hello,

There is no pow() function in ATL, but you can do it using exp() and log() functions, which are available in ATL, as the min() function.

Here is the list of the numerical functions in ATL: http://wiki.eclipse.org/ATL/User_Guide#Numerical_data_type_operations

Best regards,

William

venkatesh a écrit :
Hi,

I wanted to some mathematical calculation in ATL.

The following code is written in java

double maxDouble = Math.pow(2, 223*8) - 1;
long maxUIntValue = Math.min((long)maxDouble, Long.MAX_VALUE);


I wanted to do same thing in ATL but i don't know how these pow() & min() functions are defined in ATL.



Thanks venkatesh