ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/lpc/types/float

HOME :: doc :: lpc :: types :: float
MudOS LPC now provides support for the floating point type.  Declare
variables like this:

float pi;

In general the same operations are supported for floats as are for integers.
Floating point constants may contain decimal points e.g.

pi = 3.14159265;

The LPC float type is based on the single precision floating point type
provided by C.  On most machines this will give about seven (7) digits
of precision (in base 10).
HOME :: doc :: lpc :: types :: float