aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How do i get the farition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How do i get the farition " Watch "How do i get the farition " New topic

How do i get the farition

Prashanth Vijayai

Joined: Jul 20, 2007
Posts: 17
My secenario is that i want to roundoff a number that comes after a calulation.

var x=(40000/10340000)*100;
which gives me x=0.3868471.

Now im using round(x); where im getting the answer as 0.39

My requirement is that it should not round off , It should come as 0.38 , Is their any function that could be helpfull for me.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62291

What on earth is a "farition"?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15383
There is floor, ceil, toFixed

I agree. Here's the link:
subject: How do i get the farition