Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making sure of 2 decimal places?
Message
From
26/03/1998 10:34:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087255
Message ID:
00087289
Views:
32
>What is the easiest way to determine if a number has two decimal places and if not, append it so it will have two?
nNumber = (nNumber-int(nNumber))*100
if nNumber > 9
 return .t.
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform