online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
''' Online Python Compiler. Code, Compile, Run and Debug python program online. Write your code in this editor and press "Run" button to execute it. ''' def get_unique_number(lat, lon): try: lat_double = None lon_double = None if isinstance(lat, str): lat_double = float(lat) else: lat_double = lat if isinstance(lon, str): lon_double = float(lon) else: lon_double = lon lat_int = int((lat_double * 1e7)) lon_int = int((lon_double * 1e7)) val = abs((lat_int << 16 & 0xffff0000) | (lon_int & 0x0000ffff)) val = val % 2147483647 return val except Exception as e: print("marking OD_LOC_ID as -1 getting exception inside get_unique_number function") print("Exception while generating od loc id") print(traceback.format_exc()) return None print(get_unique_number(44.6212179,-75.696319)) #print(get_unique_number(44.6212179,-75.6963195)) #print(get_unique_number(40.2318791,-78.9155315)) #print(0x10000000 * 0x10000000 * 0x10000000 * 0x10000000) #print(get_unique_number( 179.8213878, 179.6963195)) #print(get_unique_number( 179.8213878, -179.6963195)) #print(get_unique_number(-179.6963195, 179.8213878)) #print(get_unique_number(-179.6963195, -179.8213878))

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue