Hi, how would you convert this code to pascal?
Type "long" is Int64 (or QWord). "<<" is shl.
But what about Double.LongBitsToDouble?
public static double exp(double val) {
final long tmp = (long) (1512775 * val + 1072632447);
return Double.longBitsToDouble(tmp << 32);
}
The code is fast exponential function - approximation of e^x.