Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 175389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:41:25+00:00 2026-05-11T13:41:25+00:00

I making a web app in Flex using global coordinates I get the coordinates

  • 0

I making a web app in Flex using global coordinates

I get the coordinates as strings from a web service then I do something like this:

latStr:String = '28.7242100786401'; longStr:String = '-106.12635420984';  var cLat:Number = new Number(latStr); var cLong:Number = new Number(longStr); 

This works PERFECT on IE and chrome, from the web server and when debugging locally, but Firefox just works when debugging locally and not from the web server, in the web server cLat and cLong return ‘NaN‘.

check it out yourself, it should pop up an alert when you click on a result: http://mundobuk.com/prueba/mapa/main.html?buscar=oxxo

so I tried using parseFloat(), but it rounds cLat to 28 and cLong to -106 🙁

Then I tried separating the decimals form integers, like from my example 28 and 7242100786401 then divide 7242100786401/10000000000000 = 0.7242100786401

having 2 numbers 28 and 0.7242100786401 I add them up

28 + 0.7242100786401 = 28.7242100786401

here is in code form:

var latArr:Array = latStr.split('.'); var longArr:Array = longStr.split('.');   var latDivStr:String = '1'; for (var i:int= 0; i< latArr[1].length; i++){ latDivStr += '0'; }  var longDivStr:String = '1'; for (var j:int = 0; j< longArr[1].length; j++){ longDivStr += '0'; } var cLat:Number = parseFloat(latArr[0]) + arseFloat(latArr[1])/parseFloat(latDivStr); var cLong:Number = parseFloat(longArr[0]) - parseFloat(longArr[1])/parseFloat(longDivStr); 

again, this way works great everywhere, just not in firefox in the web server >_>

anyone have any ideas? im going crazy whit this @_@

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:41:26+00:00Added an answer on May 11, 2026 at 1:41 pm

    I finally found out why its not working, for some reason in firefox instead of reading a dot (.) it reads a comma (,) from the web service (done in vb.net)

    locally it reads it as a dot too, not online, so I suppose it has to do something with my IIS server O_o

    hope this helps someone out there…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Depending on the JavaScript library, it may be easy enough… May 11, 2026 at 3:48 pm
  • added an answer I don't know how effective this can be, you can… May 11, 2026 at 3:48 pm
  • added an answer Office Interop does require that Office be installed on the… May 11, 2026 at 3:48 pm

Related Questions

I'm building an app that authors would (hopefully) use to help them, uh.. author
I am currently working on a project for school which will be a webapp
I am making a C# app for a class project. I want to ensure
I'm making a webpage with dynamic content that enters the view with AJAX polling.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.