Inspectopedia Help

Suspicious underscore in number literal

Reports decimal number literals that use the underscore numeric separator with groups where the number of digits is not three. Such literals may contain a typo.

This inspection will not warn on literals containing two consecutive underscores. It is also allowed to omit underscores in the fractional part of double and float literals.

Example: int oneMillion = 1_000_0000;

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023