Published in


Effective Java: Avoid Float and Double If Exact Answers Are Required

Photo by Jeswin Thomas on Unsplash

This chapter dives into a fun computer science based topic. When we have a need to represent numbers that include a decimal point we will often reach for either a float or a double. These primitive types facilitate the representations of approximate floating point values over various magnitudes. A key part of the previous sentence is that it's an approximation. We must not…




Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

Making an Endpoint 13 Times Faster

Software Reverse Engineering: Diffusing Phase 3

How to run Python script in background [automatically] on Windows Startup


Set-Up Automatic Testing

Levelling the Playing Field: Myplanet, CNIB, & HackerYou Partner to Create Accessible…

Mental Models for Debugging Hard Problems

Berry Data Weekly Report #19 (May 31st — June 6th)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kyle Carter

Kyle Carter

I'm a software architect that has a passion for software design and sharing with those around me

More from Medium

Make your Java comments more informative, actionable

The elusive and beautiful Java Method Reference

What is the visitor design pattern? (Java)

Is Java dying ? .. maybe not!!