# floating point math

dave@ipac.caltech.edu (dave@ipac.caltech.edu)
Wed, 17 Jan 1996 13:38:30 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    For a lot of applications, in-server floating point would be useful.  One
    solution is to build a small standalone "math server" that the MOO talks
    to using open_network_connection.  We built one of these for AstroVR using
    the UNIX desk calculator bc.  The in-db representation of floats is as STR,
    and bc-code is generated and sent to the math server.  The answers are
    read back into the db as STR.  If you can do your math processing in a
    single call to the math server it goes quickly.

    Cheers, DVB