I am looking for a programming function that can convert NAD27 coordinates to WGS84.
I know QGIS could do the conversion, but I need a function for my purposes.
If you are looking for online API solution, you can use MyGeodata Cloud API - you can send data in many GIS formats and set transformation to any known projection and conversion to many GIS formats. Data can be post as file or as an URL link - as well as the result. In case you have coordinates in CSV file somewhere online, you can call this request:
For more options see API documentation.