This Question is not proper.
that is not a big deal to make converter.
don't look here for ready made solution. Try to learn.
here ur problem is solved not ur coding we do.
Go to this page :
http://www.statman.info/auto-mass/kilograms_to_tons.html[
^]
View its source u will find that