This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.

I have a double number d = 15.33 .I want to do the below calculation.(ie) i want to seperate the whole number and the decimal part without using a splitter based on (.) to get the values.How can I do that??

Converting to text and splitting on the decimal point is both inefficient and subject to localisation issues (e.g. '.' versus ','). Using the Math library is the way to go, I think.

Look at Math.floor().

Compare and contrast to Math.ceil() and Math.round(), which have similar functionality, but subtle important differences.

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.