user48010: I've got a uBlox Neo 7N GPS Module and configured it so if theres is no incoming data print no location but if there is print the latitude and longitude. However it's printing ?,?.
So I'm assuming it's wired correctly as I'm getting an output however maybe my code is preventing it from printing the two long numbers hence converting it to a ? instead. 
  char buf[128];   
  if (gps.location.isValid()) {
    snprintf(buf, sizeof(buf), "%lf,%lf", gps.location.lat(), gps.location.lng());
    Serial.println(buf);
  }

EDIT I know that Im getting a read as I set two variables of type double lat and long to equal gps.location.lat() and gps.location.lng() respectively and I'm getting a number. How do I fix up this snprintf line so it prints properly?

user30198: No floating point for sprintf, it prints a '?'.
The functions sprintf, sscanf and the alike functions (snprintf and others) do not have floating point support for avr microcontrollers.
History
One of the first Arduino boards used the Atmega8 microcontroller with only 8k flash and 1k sram. It was important to be very memory efficient.
The gcc compiler did not automatically include the floating point support libraries for the sprintf functions, however it was easy to include them. Arduino decided not to include those extra libraries because they use extra memory.
Arduino has a preprocessor, compiler and linker that tries to only use code that is actually used. The sprintf does not know at compile time if floating point will be used, so it would have to include those extra floating point support libraries whether they were used or not.
Now it is 2018 and it is sadly still not included.
Workaround

The Serial.println functions can print floating point variables. They can however not print the output in scientific notation. It rounds the value that is printed to the nearest number.
The dtostrf() and dtostre() convert a float variable to text. The dtostre() is for scientific notation.
A variable of the float type can be cast to a integer.
The Arduino String object can handle a float.

Only float for avr microcontrollers, no double.
The avr microcontrollers are 8-bit microcontrollers. There is no floating point library for 64-bit double variables, only a library for 32-bit float variables.
That library is according to the IEEE standard and is extremely fast and optimized.

48010: <p>I've got a uBlox Neo 7N GPS Module and configured it so if theres is no incoming data print <code>no location</code> but if there is print the latitude and longitude. However it's printing <code>?,?</code>.</p>

<p>So I'm assuming it's wired correctly as I'm getting an output however maybe my code is preventing it from printing the two long numbers hence converting it to a <code>?</code> instead. </p>

<pre><code>  char buf[128];   
  if (gps.location.isValid()) {
    snprintf(buf, sizeof(buf), "%lf,%lf", gps.location.lat(), gps.location.lng());
    Serial.println(buf);
  }
</code></pre>

<p>EDIT I know that Im getting a read as I set two variables of type double lat and long to equal gps.location.lat() and gps.location.lng() respectively and I'm getting a number. How do I fix up this snprintf line so it prints properly?</p>
 30198: <p><strong>No floating point for sprintf, it prints a '?'</strong>.</p>

<p>The functions <code>sprintf</code>, <code>sscanf</code> and the alike functions (<code>snprintf</code> and others) do not have floating point support for avr microcontrollers.</p>

<p><strong>History</strong></p>

<p>One of the first Arduino boards used the Atmega8 microcontroller with only 8k flash and 1k sram. It was important to be very memory efficient.<br>
The gcc compiler did not automatically include the floating point support libraries for the <code>sprintf</code> functions, however it was easy to include them. Arduino decided not to include those extra libraries because they use extra memory.</p>

<p>Arduino has a preprocessor, compiler and linker that tries to only use code that is actually used. The <code>sprintf</code> does not know at compile time if floating point will be used, so it would have to include those extra floating point support libraries whether they were used or not.</p>

<p>Now it is 2018 and it is sadly still not included.</p>

<p><strong>Workaround</strong></p>

<ul>
<li>The <code>Serial.println</code> functions can print floating point variables. They can however not print the output in scientific notation. It rounds the value that is printed to the nearest number.</li>
<li>The <code>dtostrf()</code> and <code>dtostre()</code> convert a <code>float</code> variable to text. The <code>dtostre()</code> is for scientific notation.</li>
<li>A variable of the <code>float</code> type can be cast to a integer.</li>
<li>The Arduino String object can handle a <code>float</code>.</li>
</ul>

<p><strong>Only <code>float</code> for avr microcontrollers, no <code>double</code>.</strong></p>

<p>The avr microcontrollers are 8-bit microcontrollers. There is no floating point library for 64-bit <code>double</code> variables, only a library for 32-bit <code>float</code> variables.<br>
That library is according to the IEEE standard and is extremely fast and optimized.</p>
