Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
real.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct cons_pointer make_real (long double value)
 Allocate a real number cell representing this value and return a cons pointer to it.
 

Function Documentation

◆ make_real()

struct cons_pointer make_real ( long double  value)

Allocate a real number cell representing this value and return a cons pointer to it.

Parameters
valuethe value to wrap;
Returns
a real number cell wrapping this value.

Definition at line 21 of file real.c.

References allocate_cell(), DEBUG_ARITH, debug_dump_object(), cons_space_object::payload, pointer2cell, and REALTV.

Referenced by absolute(), add_2(), lisp_divide(), lisp_ratio_to_real(), multiply_2(), negative(), read_number(), and subtract_2().