---
title: "#positive-or-negative-numbers-in-java articles | Hashnode"
description: "Explore 2 articles tagged #positive-or-negative-numbers-in-java on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/positive-or-negative-numbers-in-java"
---

Tag

# #positive-or-negative-numbers-in-java

2 posts · 0 followers

[Kaustubh Mishra](https://hashnode.com/@chromerai) · [Aug 9](https://hashnode.com/posts/java-from-scratch-how-java-stores-negative-and-floating-point-numbers/6a78da7ce61a3c00eef73edd)

### [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.

10 min read · [kmscratch.hashnode.dev](https://kmscratch.hashnode.dev/java-from-scratch-how-java-stores-negative-and-floating-point-numbers?utm_source=hashnode&utm_medium=feed)

[Madhu Palle](https://hashnode.com/@smartcookie) · [Dec 25, 2022](https://hashnode.com/posts/positive-or-negative-number/63a7c6b21ef6c13995762433)

### [Positive or Negative Number](https://smartcookie.hashnode.dev/positive-or-negative-number?utm_source=hashnode&utm_medium=feed)

Explanation : Step 1: Take a number from the user by using the Scanner class object. Step 2: If the given number is < 0 then it is a negative number otherwise, it is a positive number. Java Code : //postive or negative import java.util.Scanner; pub...

1 min read · [smartcookie.hashnode.dev](https://smartcookie.hashnode.dev/positive-or-negative-number?utm_source=hashnode&utm_medium=feed)
