Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Float auf nächstgrößere Ganzzahl AUFrunden. Wie?

2,770 views
Skip to first unread message

AndreT78

unread,
Apr 21, 2009, 10:00:02 AM4/21/09
to
Hallo,

ich habe ein Float-Feld und möchte dieses nur als Ganzzahl haben, und zwar
auf die nächstgrößere. Wie geht das?

Die Round und Cast-Funktion macht es ja immer nach "Vorschrift", aber ich
möchte aus 0,1 -> 1 haben und aus 1254,41 -> 1255

Danke
Gruß Andre

Elmar Boye

unread,
Apr 21, 2009, 12:35:33 PM4/21/09
to

Hallo Andre,
"AndreT78" <Andr...@discussions.microsoft.com> schrieb ...

> ich habe ein Float-Feld und möchte dieses nur als Ganzzahl haben, und zwar
> auf die nächstgrößere. Wie geht das?

Mit CEILING: http://msdn.microsoft.com/de-de/library/ms189818.aspx

Gruß Elmar

AndreT78

unread,
Apr 22, 2009, 7:11:01 AM4/22/09
to
Yes, Danke, das war es. Ich kam nicht mehr drauf

Vielen Danke

Gruß Andre

0 new messages