Floor function
David McFarlane
mcfarla9 at msu.edu
Tue May 17 16:40:48 UTC 2011
You beat me to it. Still, I went ahead and posted a "Mastering
E-Prime" article to more fully cover this (see
http://groups.google.com/group/e-prime/browse_thread/thread/71182af63ddc1402
), based on some notes I started last year and finished up today
prodded by your question (you may also see someone else's earlier
attempt at this at
http://support.pstnet.com/forum/Topic4424-5-1.aspx?Highlight=floor
). Perhaps it will help someone else in the future.
-- David McFarlane, Professional Faultfinder
At 5/17/2011 11:22 AM Tuesday, Benjamin wrote:
>The correct floor function is Fix(), which fixes the number the way
>you might fix a dog.
>
>Note that if your dog is negative, Fix() will round him "up" towards
>zero.
>Note that there is no ceiling function built into Visual Basic.
>Note that Google does not understand the difference between Visual
>Basic and .NET.
>Note that Susan G. Campbell, PhD does.
>
>On May 16, 5:14 pm, Benjamin <bsmith.... at gmail.com> wrote:
> > Is there an elegant way to perform Floor and Ceiling functions in
> > script? I tried Floor( myDoubleNumber ) and
> > Math.Floor( myDoubleNumber ) but got Unknown Function errors both
> > times. The manuals and PST web site have nothing, as far as I can
> > tell.
> >
> > I ended up hacking up a solution using the mod operator "\", but it
> > seems like there should be a better way. The mod solution would be
> > particularly annoying for a ceiling function.
> >
> > Did I forget to install or configure something again?
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list