# R Show Numbers in Scientific Notation (e.g. 3e-5 (Example Code)

This post explains how to show numbers in scientific notation (e.g. 12e-7) in R programming.

## Creating Example Data

my_number <- 11111.11111 # Example number in R my_number # Default way of displaying number # [1] 11111.11 |

my_number <- 11111.11111 # Example number in R my_number # Default way of displaying number # [1] 11111.11

## Example: Convert Numeric Data to Scientific Notation Character String

formatC(my_number, # Display number in scientific notation format = "e", digits = 1) # [1] "1.1e+04" |

formatC(my_number, # Display number in scientific notation format = "e", digits = 1) # [1] "1.1e+04"