[Thread Prev][Thread Next][Index]
Re: density calculation, rho_un and precision
Hi -
You just need the LIST/FORMAT qualifier to get more precision:
LIST/FORMAT=(f8.2) density
Ansley Manke
Namba Takaya wrote:
> Dear Sir
>
> I want to calculate the density (ryo_un) by two decimals like
>
> 1021.22.
>
> I have the data of temperature and salinity in the ascii file, density.txt
>
> (temperture) (salinity) (depth)
> 28.12 30.9 0.4
> 28.25 33.2 9.7
> 28.29 33.5 21.0
> 28.36 33.7 25.8
>
> file /variables="tem,sal,dep" density.txt
> let density=rho_un(tem,sal,dep)
> list density
>
> result come like
> 1 1019.
> 2 1021.
> 3 1021.
> 4 1021.
>
> I want to get more precise(in decimal) result like
>
> 1 1019.36
> 2 1021.07
> 3 1021.79
> 4 1021.97
>
> Could you tell me how I could do it?
>
> Thank you in advance.
>
> Takaya Namba
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
Ansley Manke Pacific Marine Environmental Laboratory Seattle WA (206)526-6246
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement