pike.git / src / modules / Math / math_module.c

version» Context lines:

pike.git/src/modules/Math/math_module.c:1:   /* -  * $Id: math_module.c,v 1.2 1999/05/08 00:50:52 hubbe Exp $ +  * $Id: math_module.c,v 1.3 1999/10/25 19:07:04 mirar Exp $    */      #include "global.h"   #include "config.h"      #include "program.h"      #include "math_module.h"      /*** module init & exit & stuff *****************************************/
pike.git/src/modules/Math/math_module.c:40:    {    struct program *p;       start_new_program();    sub[i].func();    p=end_program();    add_program_constant(sub[i].name,p,0);    if (sub[i].pd) sub[i].pd[0]=p;    else free_program(p);    } +  +  add_float_constant("pi",3.14159265358979323846 ,0); +  add_float_constant("e", 2.7182818284590452354 ,0);   }