BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-16-2008, 04:02 PM   #1
thewarlock
Knows Where the Search Button Is
 
Join Date: Aug 2005
Location: SF bay
Model: 8120
PIN: 246B95C5
Carrier: T-Mobile
Posts: 21
Default need help with blackberry maps

Please Login to Remove!

Hey everyone,

I am making an application that launches blackberry maps from a location document on a server. I would multiply the latitude and longitude by 100,000 as per the documentation but I've run into a problem. The blackberry throws an error when the lat or long is XXX.XXXXXX (e.g. -118.392848). Can anyone tell me how to fix this?
Offline  
Old 06-16-2008, 07:42 PM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Quote:
Originally Posted by thewarlock View Post
Hey everyone,

I am making an application that launches blackberry maps from a location document on a server. I would multiply the latitude and longitude by 100,000 as per the documentation but I've run into a problem. The blackberry throws an error when the lat or long is XXX.XXXXXX (e.g. -118.392848). Can anyone tell me how to fix this?
Hard to give specific help without a code snippet, or the Exception thrown, but some times the order of casting is important to prevent overflows. This snippet works as expected:
Code:
        double lon = -118.392848;
        
        int l = (int)(lon * 100000.0);
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


BECO Universal Impedance Bridge Model 315A, Brown Electro Measurement Corp. 315A picture

BECO Universal Impedance Bridge Model 315A, Brown Electro Measurement Corp. 315A

$139.00



TC ESI Impedance Bridge Model 250-DA Serial 1394 Electro-MeasurementS Oregon USA picture

TC ESI Impedance Bridge Model 250-DA Serial 1394 Electro-MeasurementS Oregon USA

$69.99



Digital Ohmmeter LCD Audio Impedance Test Meter Speaker Voice Resistor System picture

Digital Ohmmeter LCD Audio Impedance Test Meter Speaker Voice Resistor System

$56.99



IMPEDENCE MATCHING TRANSFOMER BNC F-BNC F, 50 OHM TO 75 OHM, 20-1100 MHZ picture

IMPEDENCE MATCHING TRANSFOMER BNC F-BNC F, 50 OHM TO 75 OHM, 20-1100 MHZ

$28.00



HP-Agilent-Keysight 41951-69001/ 41951-61001 Impedance Test Adapter for 41951A picture

HP-Agilent-Keysight 41951-69001/ 41951-61001 Impedance Test Adapter for 41951A

$450.00



Vintage Organic Impedance Measuring Control Panel AC-4 by CEFCO EXPERIMENTAL picture

Vintage Organic Impedance Measuring Control Panel AC-4 by CEFCO EXPERIMENTAL

$219.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.