TMSFNCSpinEdit Value

I have a FNCSpinEdit showing a value to one decimal and the frequency is set to 0.1 which works as expected and the value displayed in the spin edit is correct at all times. However when I use FloatToStr to write the value as a string, I get unexpected decimal values e.g a value of 0.7 is shown in the spin edit, but the string value produced = 0.6999999988079071

TMSFNCLabelEdit1.Text := FloatToStr(TMSFNCSpinEdit1.Value);

Hi,

TTMSFNCSpinEdit.Value is a Single, that is an expected result when passing a Single to FloatToStr. You can use FormatFloat instead:

FormatFloat('0.#', TMSFNCSpinEdit1.Value);