Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FLoor

Status
Not open for further replies.

MrMoocow

Programmer
May 19, 2001
380
US
Anyone have a good FLoor function? I'm using:

Public Function Floor(ByVal value As Double) As Integer
Floor = CDbl(CLng(value))
End Function

But it seems to have some irregularitiies. Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
Hi,

Use the Fix Statement e.g.

Floor = Fix(value)

Jon
 
Thank you, Never though of "Fix" instead of floor...

Silly me Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top