Go to the documentation of this file.
20 struct {
float low,high;} fval;
32 for (i=0; i<len*2; i++)
d->c.fvec.fv[i] = 0.0;
34 for (i=0; i<len; i++) {
35 f2d.dval = (double)
f->c.fvec.fv[i];
36 *fp++ = f2d.fval.low; *fp++ = f2d.fval.high;}
47 struct {
float low,high;} fval;
60 for (i=0; i<len; i++) {
61 f2d.fval.low = *fp++; f2d.fval.high = *fp++;
62 f->c.fvec.fv[i]= (float)f2d.dval;}
73 register float factor;
79 if (
n>=2) factor=
ckfltval(argv[1]);
else factor=1.0;
86 sp=(
short *)
s->c.str.chars;
87 for (i=0; i<len; i++) fp[i]= sp[i] * factor;
defun("ADR_TO_STRING", mod, ADR_TO_STRING)
floatdouble(context *ctx, int n, argv)
static pointer F2D(context *ctx, int n, argv)
static pointer D2F(context *ctx, int n, argv)
pointer error(enum errorcode ec,...) pointer error(va_alist) va_dcl
pointer S2F(context *ctx, int n, argv)
euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43