comp.lang.ada
 help / color / mirror / Atom feed
* Re: Misc problems
       [not found] <vhik8krpg3s.fsf@grotte.ifi.uio.no>
@ 2000-01-30  0:00 ` Jeff Carter
  2000-02-01  0:00 ` David Botton
  1 sibling, 0 replies; 2+ messages in thread
From: Jeff Carter @ 2000-01-30  0:00 UTC (permalink / raw)


Jan Kroken wrote:
> Second, there's something wrong with the math of the stars demo.
> Probably because I didn't know how to implement
> C.Int := Floor(C.Double), so I just used C.Int = C.Int(C.Double);.
> How do one implement Floor?


Check out the attributes of floating-point types (ARM A.5.3), where you
will find the attributes 'Floor and 'Ceiling. Assuming the declarations

I : C.Int;
D : C.Double;

what you want is

I := C.Int (C.Double'Floor (D) );

-- 
Jeff Carter
"I waggle my private parts at your aunties."
Monty Python & the Holy Grail




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Misc problems
       [not found] <vhik8krpg3s.fsf@grotte.ifi.uio.no>
  2000-01-30  0:00 ` Misc problems Jeff Carter
@ 2000-02-01  0:00 ` David Botton
  1 sibling, 0 replies; 2+ messages in thread
From: David Botton @ 2000-02-01  0:00 UTC (permalink / raw)


Do you plan on making your binding freely available long term?

 I have had interest in SDL for some time now, but have not had time to play
with making bindings.

David Botton

Jan Kroken wrote in message ...
>This requires a lot of source, so those interrested can download
>a code snapshot at
>http://www.stud.ifi.uio.no/~jankr/files/adaSDL-snapshot.tar.gz









^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-02-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <vhik8krpg3s.fsf@grotte.ifi.uio.no>
2000-01-30  0:00 ` Misc problems Jeff Carter
2000-02-01  0:00 ` David Botton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox