How to convert Degrees/Minutes/Seconds coordinates to decimal degrees

How to convert Degrees-Minutes-Seconds coordinates to decimal degrees

We have to convert DMS coordinates when it has to import in GIS software as locational value.