float Solar_elevation = (SolarPosition_t pos, int numDigits) it returns 3 (the numDigits)
Correct. Look up "C/C++ comma operator" to learn why. Specific to the Serial.print case, the "3" is a function call argument that determines how many digits to print.
Note that the sky is quite light when the center of the sun is on the horizon (elevation = 0°). You may want to check for civil (-9°), nautical (-12°) or astronomical (-18°) twilight.
What is the scope of your project?
You just say you want to turn a light ON/OFF, in response to the sun being above and below the horizon, what other stuff is the controller connected to?