On Monday 19 September 2005 08:53, Sergey Plis wrote: > Hi! > > It seems that I cannot have more than 5 numbers on the floating point > stack.
You can put eight there, but the floating point input conversion needs three spares. > However, in a library I want to use one function needs 11 > parameters. What can I do in order to make the binding work? Use f>fd or f>fs. This stores a floating point number as cell or 2 cells on the stack, so that you can use int and llong to declare the floating point number (int for sf, llong for df). You'll need a swap after f>fd. Example: import float float also dos also forth library libm libm.so libm fmod llong llong (fp) fmod 3e f>fd swap 2e f>fd swap fmod f. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/
pgpNiEIUN8g2o.pgp
Description: PGP signature
