?sprintf
> x <- "1.085714e-01"
> sprintf("%.4f", as.numeric(x))
[1] "0.1086"
>
On Thu, Apr 24, 2008 at 6:28 AM, orkun <[EMAIL PROTECTED]> wrote:
> hello
>
> How can I change a vector's float value from ("1.085714e-01") format to
> a simpler format (like 0.1xxx).
>
> regards
>
>
> --
> Ahmet Tem
Try this:
x <- "1.085714e-01"
format(as.numeric(x), scientific = F)
On Thu, Apr 24, 2008 at 7:28 AM, orkun <[EMAIL PROTECTED]> wrote:
> hello
>
> How can I change a vector's float value from ("1.085714e-01") format to
> a simpler format (like 0.1xxx).
>
> regards
>
>
> --
> Ahmet Temiz
> Jeo.
hello
How can I change a vector's float value from ("1.085714e-01") format to
a simpler format (like 0.1xxx).
regards
--
Ahmet Temiz
Jeo. Müh.
Afet İşleri Gen. Md.lüğü
Deprem Ar. D.
Ahmet Temiz
Geo. Eng.
General Dir. of
Disaster Affairs
--
This message has been scanned for viruses and
3 matches
Mail list logo