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

brain fog question

Status
Not open for further replies.

Stella001

Programmer
Mar 24, 2004
71
US
I am using mercator version 7.5
I have a customer sending me a number ( ex 999 ). I need to load this into a text field making it a decimal ( ex 9.99 ) . I know this is probably an very easy question but for some reason my brain is fogged over this morning.
 
Will it always be mapped across to 2 decimal places? or will it sometimes be 3 or even none??
 
left(field,size(field)-2)) + "." + right(field,2)
 
Sorry missed the input is a number.
left(numbertotext(field),size(field)-2)) + "." + right(numbertotext(field),2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top