Thread
:
Need help from java expert
View Single Post
#
9
(
permalink
)
10-14-2008, 07:06 AM
Eranga
Moderator
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,061
Quote:
Originally Posted by
javaseek
Hi mate,
Yes I want to round a double to 2 decimal places. Do you think that double is the right data type for price? What do you suggest for a right data type to use on price.
I'm appreciated your help.
thanks
Yes, double is ok to handling the price variable, since there have two decimal places for cents it's the best type. Or else you can use float as well, since price doesn't have that mush of larger value.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.
Help:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Resources:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Web:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Tips:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Eranga
View Public Profile
Send a private message to Eranga
Find all posts by Eranga