Template:Tex number

From Meta, a Wikimedia project coordination wiki

This template takes the output of #expr and converts it to a TeX string.

Examples:

"{{tex number|234}}" → "2.34 \times 10^{ 2 } " [1]

"{{tex number|2.34}}" → "2.34 " [2]

"{{tex number|2.34e-4}}" → "2.34 \times 10^{ -4 } " [3]

"{{#tag:math|{{tex number|234}}}}" gives "" [4]

"{{#tag:math|{{tex number|2.34}}}}" gives "" [5]

"{{#tag:math|{{tex number|2.34e-4}}}}" gives "" [6]