double value = 3.25;
double fractionalPart = value % 1;
double integralPart = value - fractionalPart;
More Related Contents:
- How can I upload files to a server using JSP/Servlet?
- How should I use servlets and Ajax?
- What is the difference between JSF, Servlet and JSP?
- Convert latitude/longitude point to a pixels (x,y) on mercator projection
- Expression Language in JSP not working [duplicate]
- Background timer task in JSP/Servlet web application [duplicate]
- How to escape apostrophe or quotes on a JSP (used by JavaScript)
- Reading a JSP variable from JavaScript
- Java Round up Any Number
- Unable to compile class for JSP: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
- Rounding BigDecimal to *always* have two decimal places
- uploading of pdf file
- Why does getRealPath() return null when deployed with a .war file? [duplicate]
- Why put JSP in WEB-INF?
- How to include js and CSS in JSP with spring MVC
- Passing parameters to action through ModelDriven in Struts 2
- Fast transcendent / trigonometric functions for Java
- Java check if two rectangles overlap at any point
- I can pass a variable from a JSP scriptlet to JSTL but not from JSTL to a JSP scriptlet without an error
- how to get the base url from jsp request object?
- Managing webapp session data/controller flow for multiple tabs
- Logarithm for BigInteger
- Using .html files as JSPs
- Struts Web Application: Reusable Validation Client-Side & Server-Side
- How to use session in JSP pages to get information?
- org.apache.jasper.JasperException: The function test must be used with a prefix when a default namespace is not specified
- Uploadify plugin doesn’t call Java Servlet
- How do I create an int array with randomly shuffled numbers in a given range [duplicate]
- Avoid duplicate submission of Struts 2 jsp page
- Servlet redirect to same page with error message