Inputnumber Help

fraxinus

Member
Licensed User
Longtime User
Hi All
I'm having a problem with Inputnumber , any help will be appreciated.

code:
InputNumber = txtdismiles.text
txtwholemiles.Text = NumberFormat(InputNumber,1,0)

txtdismiles.text = 0.7143
txtwholemiles.text is returning result as 1 instead of 0

thanks
Rob
 

fraxinus

Member
Licensed User
Longtime User
Thanks Klaus
Its the zero (0) of the number 0.7143 I was requiring not the decimals.
I'm obviously using the wrong function to retrieve it.
original code:
InputNumber = txtdismiles.text
txtwholemiles.Text = NumberFormat(InputNumber,1,0)

txtdismiles.text = 0.7143
txtwholemiles.text is returning result as 1 instead of 0

thanks
Rob
 
Upvote 0
Top