EN
Math - milli- prefix
6
points
Milli- is a unit prefix used primarily with the metric system. The prefix denotes a factor of 10^−3 or 0.001. It is frequently used in programming and electronics for prefixing units of time and length.
Name | milli |
Symbol | m |
Base 10 | 10^−3 |
Science | 1e−3 |
Decimal | 0.001 |
To see all metric prefixes read this article.
Examples in programming
Programming language offers simple way to get current time in milliseconds (measured since 1970-01-01).
1. JavaScript example:
// ONLINE-RUNNER:browser;
const now = Date.now();
console.log(now);
2. Java example:
public class Program {
public static void main(String[] args) {
long now = System.currentTimeMillis();
System.out.println(now);
}
}