Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
sexagesimal to decimal

Subject: sexagesimal to decimal

From: Olivier Perrin

Date: 23 Feb, 1999 11:30:07

Message: 1 of 2

Hi !

I have numerical problems when I try to convert sexagesimal numbers to
decimal numbers. Has anyone already had the same problem ???

Here is the function I use:
dec=fix(sexa)+fix((sexa-fix(sexa))*100)/100*5/3+(sexa-fix(sexa*100)/100)*25/9;

Thank you

Olivier Perrin

Subject: sexagesimal to decimal

From: Peter John Acklam

Date: 25 Feb, 1999 15:05:59

Message: 2 of 2

Olivier Perrin wrote:
>
> I have numerical problems when I try to convert sexagesimal numbers to
> decimal numbers. Has anyone already had the same problem ???

It would help a lot if you told what kind of problems you had.

Peter

--
Peter J. Acklam - jacklam@math.uio.no - http://www.math.uio.no/~jacklam

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us