Floating Point Constants

PHOTO EMBED

Tue Mar 16 2021 20:59:24 GMT+0000 (Coordinated Universal Time)

Saved by @fre_apples #python

# How would you express the constant floating-point value 3.2 × 10-12 in Python:
3.2e-12

#Examples

0.       // = 0.0
-1.23    // = -1.23
23.45e6  // = 23.45 * 10^6
2e-5     // = 2.0 * 10^-5
3E+10    // = 3.0 * 10^10
.09E34   // = 0.09 * 10^34
2.E100L  // = 2.0 * 10^100

content_copyCOPY