Skip to content
⌘ NSIS Forum Archive

Compare decimal numbers

4 posts

shandu#

Compare decimal numbers

Hi all,

Maybe I am crazy, but this return false:

${if} 0.1 < 0.3
   ; Do something if true
${else}
   ; Do something if false
${endif} 
Why is it?
kunde#
I don't know if this is the best solution, but I've used this script to compare two versions of software.



Maybe it's not what you want to do, but you can achieve what you're looking for.