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 JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimals when using itos in relation to show dimensions in parameters

  • Thread starter Thread starter moose021
  • Start date Start date
M

moose021

Guest
Is it possible to show decimals eg 30,37 instead of 30 when I use itos in a relation to show my dimension in parameters.
Eg
dim_type="L=" + itos(d1) + ",B=" + itos(d2) + ",T=" + itos(d0)
 
The only way to do it would be

x = itos(d1) + "," + itos( (d1 - floor(d1)) * 100 )
 
Works great. Thanks
 

Part and Inventory Search

Sponsor

Back
Top