The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java Math floor example

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Arpit Mandliya

Posts: 190
Nickname: mandliya23
Registered: May, 2017

Arpit Mandliya is Java programmer working on Core java, Spring, Hibernate
Java Math floor example Posted: Sep 2, 2017 1:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Arpit Mandliya.
Original Post: Java Math floor example
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
Latest Java Buzz Posts
Latest Java Buzz Posts by Arpit Mandliya
Latest Posts From Java tutorial for beginners

Advertisement

Java math floor function is used to get largest integer which is lesser than number. Syntax Example Let’s use math’s floor function in the example. When you run above program, output of the program will be: Ceil value for 2.6 = 3.0 Ceil value for 26.1 = 27.0 Ceil value for -0.8 = -0.0 Ceil value for -6.2 = -6.0 Ceil value for 4.6f = 5.0 Few points about Math.ceil function: In case of Nan or infinity or zero, it will give you same result as argument. If you pass a value which is already equal to integer,

The post Java Math floor example appeared first on Java2Blog.

Read: Java Math floor example

Topic: Java Math floor example Previous Topic   Next Topic Topic: What is JavaServer Faces (JSF)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use