---
title: "Discussion on \"HOW JAVA STORES NEGATIVE NUMBERS AND THE LIE OF 0.7\" | Hashnode"
description: "Discussion on \"HOW JAVA STORES NEGATIVE NUMBERS AND THE LIE OF 0.7\". Why 0.7f is a lie: Two's Complement, IEEE 754 bias, and how Java actually stores negative numbers & floating points in silicon."
url: "https://hashnode.com/posts/java-from-scratch-how-java-stores-negative-and-floating-point-numbers/6a78da7ce61a3c00eef73edd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [HOW JAVA STORES NEGATIVE NUMBERS AND THE LIE OF 0.7](https://kmscratch.hashnode.dev/java-from-scratch-how-java-stores-negative-and-floating-point-numbers?utm_source=hashnode&utm_medium=feed)

Why 0.7f is a lie: Two's Complement, IEEE 754 bias, and how Java actually stores negative numbers & floating points in silicon.

Aug 9 · 10 min read · kmscratch.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#java-programming](https://hashnode.com/tag/java-programming)
-   [#java-beginner](https://hashnode.com/tag/java-beginner)
-   [#javascript-interview-question](https://hashnode.com/tag/javascript-interview-question)
-   [#twos-complement](https://hashnode.com/tag/twos-complement)
-   [#ieee-754](https://hashnode.com/tag/ieee-754)
-   [#floating-point-values](https://hashnode.com/tag/floating-point-values)
-   [#floating-point-arithmetic](https://hashnode.com/tag/floating-point-arithmetic)
-   [#floating-point-precision](https://hashnode.com/tag/floating-point-precision)
-   [#java-numbers](https://hashnode.com/tag/java-numbers)
-   [#positive-or-negative-numbers-in-java](https://hashnode.com/tag/positive-or-negative-numbers-in-java)
-   [#java-internals](https://hashnode.com/tag/java-internals)
-   [#java-bigdecimal](https://hashnode.com/tag/java-bigdecimal)
-   [#cpu-architechture](https://hashnode.com/tag/cpu-architechture)
-   [#java-math](https://hashnode.com/tag/java-math)
-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#computerscience](https://hashnode.com/tag/computerscience)
-   [#backend-developments](https://hashnode.com/tag/backend-developments)
-   [#backend-development](https://hashnode.com/tag/backend-development)
-   [#backend](https://hashnode.com/tag/backend)
-   [#java-notes](https://hashnode.com/tag/java-notes)
-   [#java-beginners](https://hashnode.com/tag/java-beginners)

## Written by

[Kaustubh Mishra](https://hashnode.com/@chromerai)

@chromerai · Pune, India

  
[View profile](https://hashnode.com/@chromerai)

Just a guy who can't sleep with an itch — notes from Scratch. Tag along if you want.

Average coder? Probably. But I bet on myself every single time — not for the cars or the mansions, just for the deep expertise, the authentic work, and the life that comes with it. Just a guy who can't sleep with an itch.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
