View Single Post
  #2 (permalink)  
Old October 18th, 2004, 10:25 AM
pradeep_itguy pradeep_itguy is offline
Friend of Wrox
 
Join Date: Feb 2004
Location: Bangalore, Karnataka, India.
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey cant u write ur own funtion for this simple problem? Anyway i shall state the same for u.

1. U can use the floor function to get the integral part of the decimal number. i.e on ur VB.NET IDE type math.floor(UrDecimalNumber)
  Eg.. Math.Floor(5.6) would yeild 5 as the result.

2. Then subtract this integral part that u get from the decimal number. This would give u the decimal part that u require.

 Eg. 5.6 - 5 = 0.6 (Required Result)




It is not how much we do,
but how much love we put in the doing.

-Mother Theresa