toExponential

Summary

Formats the integer value using exponential notation.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string toExponential()

Returns

The integer value formatted using exponential notation.

Description

The number of digits appearing after the decimal point will be the number of digits required to uniquely identify the value.

Examples

Basic Usage
1
2
3
4
5
6
7
8
import System;
 
unsigned short x = 100;
unsigned short y = 1000;
unsigned short z = 10000;
Console.log(x.toExponential()); // "1e+2"
Console.log(y.toExponential()); // "1e+3"
Console.log(z.toExponential()); // "1e+4"

Share

HTML | BBCode | Direct Link