# Remove negative Symbol

**URL:** <https://forum.kirupa.com/t/remove-negative-symbol/161422>\
**Category:** flash\
**Created:** [September 3, 2005, 9:41pm UTC](https://forum.kirupa.com/t/remove-negative-symbol/161422 "2005-09-03T21:41:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dycraw](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@dycraw](https://forum.kirupa.com/u/dycraw)\
**Post date:** [September 3, 2005, 9:41pm UTC](https://forum.kirupa.com/t/remove-negative-symbol/161422/1 "2005-09-03T21:41:56Z")

</div>

This is my current code

\_root.onEnterFrame = function ()  
{  
if (\_root.\_xmouse - 310 \< 0)  
{  
\_root.locationClipXE.text = “W”;  
} else {  
\_root.locationClipXE.text = “E”;  
}

```
 if (_root._ymouse - 290 &lt; 0)
 {
      _root.locationClipYN.text = "N";
 } else {
      _root.locationClipYN.text = "S";
 }

```

{  
\_root.locationClipX.text = “” + \_root.\_xmouse - 310;  
\_root.locationClipY.text = “” + \_root.\_ymouse - 290;  
}  
}

What I am trying to accomplish is I have a map og the globe and when you move your cursor I want the Long & Lat. I needed to enter negative values to center the Prime Meridean and the equator in their correct locations. Using this code I have been able to generate bot a Direction (N,E,S,W) and a corresponding number for each direction. However for every N,W direction the number is a ngative value. All help ywould be great.
