Error Code: CS0161

Im trying to create a currency converter but i suspect i cant use equations instead of a bazillion of zeros ?

For example Instead of typing 1000000 (1,000,000) Im using E1+6 to shorten ZERO spam…

My highest is E1+123 “Quinquagintillion” (1,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000)

Code: using UnityEngine;using System.Collections;public class CurrencyConverter - Pastebin.com

Error: Assets/Scripts/CurrencyConverter.cs(29,23): error CS0161: `CurrencyConverter.GetCurrencyIntoString(float, bool, bool)': not all code paths return a value

No, your problem is that you’ve stated that GetCurrencyIntoString returns a string →
public string GetCurrencyIntoString , but it doesn’t.
Try adding return converted; at the bottom of the method.