Passing FLOAT's

Started by pjot, November 06, 2004, 08:21:39 AM

Previous topic - Next topic

pjot

#15
I don't want to be disturbing but it works for me!

int float_print (float f)
{
printf("%fn", f);
printf("%gn", f);
printf("%en", f);
return(0);
}
-----------------------------------------------
NewLisp:
(import "./float.so" "float_print")
(float_print (get-integer (pack "f" 1.23)))

Result:

1.230000

1.23

1.230000e+00

Lutz

#16
Norman, Norman ... too much of that dark beer ;)



Lutz

Lutz

#17
yes, it works just fine, I forgot to compile



Lutz

pjot

#18
Yeah he is drinking too much... ;-)

newdep

#19
Yes we call it "Dentergems Double" But it floats good ;-)
-- (define? (Cornflakes))

Lutz

#20
I am still waiting for that case of "Dentergems Double" you guys promised me some time ago ...



Lutz

newdep

#21
Heee Lutz yes your right ;-)



Pjot..how about it? Your traveling to the states next week!

Cant you post a case for Lutz?
-- (define? (Cornflakes))

pjot

#22
Well, I will be in Utah, not Florida unfortunately... ;-)

Lutz

#23
In Utah on Sundays they don't serve beer with more than 6% alcohol content . In Florida they don't sell beer in supermarkets before noon on Sundays (so people don't come drunken to church :) )



Lutz

newdep

#24
hahahah..sounds logic... Well here in The Netherlands we have this standard

environment-rule "where a church is is a bar" ;-) So actualy every town with a church

has the bar across the street ;-)  Im wont explain the results ;-)
-- (define? (Cornflakes))