Steve-vfp9user
Programmer
Hello
I have a field on a report called: QTY
The field is a N,7,3
On my report the field is displayed as STR((invprodrecs.qty),7,3) which is fine when the figure is 1.250 or 1.500 etc.
I have changed this to STR(invprodrecs.qty) which works fine if the number is 1, 2, 15 etc but will cut off the .250 or .500 if it exists in the figure.
The help file is once again sparse so my question is, what is the best way to add the field to my report so the trailing zeros will not show if the number is whole (e.g. 1, 4, 11 etc) but show if its 1.250, 1.500 etc.
Thank you
Steve Williams
VFP9, SP2, Windows 10
I have a field on a report called: QTY
The field is a N,7,3
On my report the field is displayed as STR((invprodrecs.qty),7,3) which is fine when the figure is 1.250 or 1.500 etc.
I have changed this to STR(invprodrecs.qty) which works fine if the number is 1, 2, 15 etc but will cut off the .250 or .500 if it exists in the figure.
The help file is once again sparse so my question is, what is the best way to add the field to my report so the trailing zeros will not show if the number is whole (e.g. 1, 4, 11 etc) but show if its 1.250, 1.500 etc.
Thank you
Steve Williams
VFP9, SP2, Windows 10