I have an array of doubles that is output to a file and was wondering if there is a way to output white spaces where the value is 0 without replacing the 0's another value contains?

example...
number1 = 100 would still read number1 = 100, but number2 = 0, would read number2 =

NVM... I just used a for loop to output and made an if statement inside the loop... stupid question my bad