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 JavaScript Promises Essentials this week in the JavaScript 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
Author

How do i get the farition

Prashanth Vijayai
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61594
    
  67

What on earth is a "farition"?


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

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i get the farition