mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
Aumentar precisao do valor de PI.
This commit is contained in:
parent
0eb6ee3fee
commit
e9e9cb03f0
1 changed files with 5 additions and 3 deletions
|
|
@ -3,15 +3,17 @@
|
|||
** Mathematics library to LUA
|
||||
*/
|
||||
|
||||
char *rcs_mathlib="$Id: $";
|
||||
char *rcs_mathlib="$Id: mathlib.c,v 1.1 1993/12/17 18:41:19 celes Exp celes $";
|
||||
|
||||
#include <stdio.h> /* NULL */
|
||||
#include <math.h>
|
||||
|
||||
#include "lualib.h"
|
||||
#include "lua.h"
|
||||
|
||||
#define TODEGREE(a) ((a)*180.0/3.14159)
|
||||
#define TORAD(a) ((a)*3.14159/180.0)
|
||||
#define PI (3.141592653589793)
|
||||
#define TODEGREE(a) ((a)*180.0/PI)
|
||||
#define TORAD(a) ((a)*PI/180.0)
|
||||
|
||||
static void math_abs (void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue