Hello. I have been using this forum for a couple of years and finally came upon something I could not answer from the archives.
I am working on a C-Shell script and trying to take a number (i.e. 5.6784) and truncate it to only one decimal place. I have tried using the bc function with a scale, but it rounds the number. See below:
set xStripR = `echo "scale=1; $xCoord1"
This will return what I am looking for except that 5.49 will return 5.4 and 5.51 will return 5.6.
Is there a way to truncate in C-Shell? Please help! This project has to be complete VERY soon.