# How to return mouse coordinates with decimals?

**URL:** <https://forum.kirupa.com/t/how-to-return-mouse-coordinates-with-decimals/309508>\
**Category:** flash\
**Created:** [May 17, 2010, 9:44am UTC](https://forum.kirupa.com/t/how-to-return-mouse-coordinates-with-decimals/309508 "2010-05-17T09:44:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swiftaxe](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@Swiftaxe](https://forum.kirupa.com/u/Swiftaxe)\
**Post date:** [May 17, 2010, 9:44am UTC](https://forum.kirupa.com/t/how-to-return-mouse-coordinates-with-decimals/309508/1 "2010-05-17T09:44:09Z")

</div>

Never mind. I found the problem was another and the solution was turning on smoothing for images: [http://www.bigresource.com/Tracker/Track-flash-H5kF8JVrKH/](http://www.bigresource.com/Tracker/Track-flash-H5kF8JVrKH/)

## Original message:

Hi,

How can I get the mouse coordinates in decimal format? (ie xx.xxxxxxx)

I am using this.mouseX to get the coordinates.

Thankful for any help!
