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)
NUM04-J. Do not use floating-point numbers if precise computation is required
Page Information
Title:
NUM04-J. Do not use floating-point numbers if precise computation is required
Author:
Fred Long
Aug 14, 2008
Last Changed by:
Valery
Aug 12, 2024
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/-DZGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (4)
Page:
NUM03-J. Use integer types that can fully represent the possible range of unsigned data
Page:
NUM07-J. Do not attempt comparisons with NaN
Page:
NUM09-J. Do not use floating-point variables as loop counters
Page:
NUM54-J. Do not use denormalized numbers
SEI CERT C Coding Standard (1)
Page:
FLP02-C. Avoid using floating-point numbers when precise computation is needed
Hierarchy
Parent Page
Page:
Rule 03. Numeric Types and Operations (NUM)
Labels
Global Labels (6)
deprecated
draft
android
num
rule
android-implementation-detail-java
Recent Changes
Time
Editor
Aug 12, 2024 02:28
Valery
View Changes
May 18, 2021 08:38
Michal Rozenau
View Changes
Parasoft Jtest 2021.1
Feb 26, 2021 08:51
Michal Rozenau
View Changes
Parasoft Jtest 2020.2
Feb 12, 2018 22:02
Will Snavely
View Changes
Jan 05, 2017 14:53
Will Snavely
View Page History
Outgoing Links
External Links (4)
docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.…
www.aitcnet.org/isai/
https://www.safaribooksonline.com/library/view/secure-codin…
developer.android.com/training/articles/perf-tips.html#Avoi…
SEI CERT C++ Coding Standard (2)
Page:
VOID FLP02-CPP. Avoid using floating point numbers when precise computation is needed
Home page:
SEI CERT C++ Coding Standard
SEI CERT Oracle Coding Standard for Java (7)
Page:
NUM03-J. Use integer types that can fully represent the possible range of unsigned data
Page:
Rule AA. References
Page:
Rule 03. Numeric Types and Operations (NUM)
Page:
NUM07-J. Do not attempt comparisons with NaN
Page:
Parasoft
Home page:
SEI CERT Oracle Coding Standard for Java
Page:
Parasoft_V
SEI CERT C Coding Standard (2)
Home page:
SEI CERT C Coding Standard
Page:
FLP02-C. Avoid using floating-point numbers when precise computation is needed
Overview
Content Tools
{"serverDuration": 80, "requestCorrelationId": "735bc5c3b05bf56e"}