Skip to content
Prev 325792 / 398503 Next

Built-in function for extracting mantissa and exponent of a numeric

Dear all,

Given a number

x<-1.234e12

is there a built-in function for extracting 1.234 and 12 ?

The following "hack" seems clumpsy:
[1] "1.234" "+12"
[1] 1.234
[1] 12

Regards
S?ren