This question already has an answer here:

I am writing a contract in solidity which accept a float/decimal value.

Perform some division operation and the function should return decimal value.

Can anyone suggest which data type is use for decimal values?

marked as duplicate by eth Aug 25 '16 at 12:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.