How to work around "InvalidConversionException: Cannot convert from 'System.Single' to 'System.String'." ERROR?

I am new to the unity. I have programed once in traditional sense, and now I came back to make simple Idle game using visual scripting. My idea is simple:

  • make formula that calculates money earned in real time
  • save it as “system variable” so it saves even if you close game (that is kinda the point duh)
  • display earned money

sadly I cant do that since “InvalidConversionException: Cannot convert from 'System.Single' to 'System.String” pops up every time I try to do so. Is there any way to fix/work around it?

You want to convert the System.Single into a System.String. You can do that by either using functions like String.Format or Float.ToString.