Task

Calculate the value of   e.



(e   is also known as   Euler's number   and   Napier's constant.)



See details: Calculating the value of e

fn CalculateE(P)
	var E:1,F:1
	loop I:1;I<=P;I+:1 do
		F*:I
		E+:1/F
	cls
	return E
cls
 
log(CalculateE(100))
log(math.e)