Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT Oracle Coding Standard for Java
2 Rules
Rule 03. Numeric Types and Operations (NUM)
NUM09-J. Do not use floating-point variables as loop counters
Page Information
Title:
NUM09-J. Do not use floating-point variables as loop counters
Author:
Fred Long
Aug 14, 2008
Last Changed by:
David Svoboda
Jan 14, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/CDdGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (2)
Page:
NUM08-J. Check floating-point inputs for exceptional values
Page:
NUM10-J. Do not construct BigDecimal objects from floating-point literals
Hierarchy
Parent Page
Page:
Rule 03. Numeric Types and Operations (NUM)
Labels
Global Labels (5)
android-applicable
android
num
rule
analyzable
Recent Changes
Time
Editor
Jan 14, 2025 09:57
David Svoboda
View Changes
Feb 08, 2024 00:20
Valery
View Changes
Feb 07, 2024 06:41
Valery
View Changes
May 18, 2021 08:39
Michal Rozenau
View Changes
Parasoft Jtest 2021.1
Mar 31, 2021 13:37
Jon O'Donnell
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+R…
https://pvs-studio.com/en/docs/warnings/v6108/
https://www.safaribooksonline.com/library/view/secure-codin…
https://wiki.sei.cmu.edu/confluence/display/java/PVS-Studio
docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.…
SEI CERT C Coding Standard (2)
Page:
FLP30-C. Do not use floating-point variables as loop counters
Home page:
SEI CERT C Coding Standard
SEI CERT Oracle Coding Standard for Java (10)
Page:
NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms
Page:
NUM08-J. Check floating-point inputs for exceptional values
Page:
NUM10-J. Do not construct BigDecimal objects from floating-point literals
Home page:
SEI CERT Oracle Coding Standard for Java
Page:
NUM04-J. Do not use floating-point numbers if precise computation is required
Page:
PVS-Studio_V
Page:
Rule 03. Numeric Types and Operations (NUM)
Page:
Parasoft
Page:
Parasoft_V
Page:
Rule AA. References
Overview
Content Tools
{"serverDuration": 83, "requestCorrelationId": "c21323a1b855c1ac"}