Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
will be truncated to an integer. If you do not want to use IM, then you need to use the unix bc calculator, which is faster, but limited in what functions it can calculate. For example see http://www.unix.com/man-page/OpenSolaris/1/bc/
If you want to process a whole image by some function, then you have to use -fx "..." as in the link just above, unless there is an -evaluate function to do what you want.
NOTE you do need to use double quotes " not single quotes ' when doing a shell variable substitution!
One reason to use convert %[fx:...] for floating point is that scripts already need to use "convert", so it is known to be available for floating point calculations. "bc" however may not be installed on cygwin (unix for dos) systems.
Also I would not go by a solaris manual for "bc", as olaris uses a VERY old version. Most systems (linux, mac, cgywin) use the GNU version of "bc" which is far more advanced with lot more functions and can create sub-functions as well.
The main problem with "bc" is that it is obtuse in it 'single letter' syntax requiring a well thumbed manual to use properly, much like IM, but less verbose.
I would not say it has limited functionality. Just very obtuse functionality.
Its big advantage over almost every other calculator program, including "convert" is that it can handle numbers of ANY size.
For example I have used it to deal with calculations involving prime numbers that are 20 base 10 digits long! that is not something that a 32 bit integer can handle (limited to 10 base 10 digits), though the new machines 64 bit integers now can handle it (20 base 10 digits), that wasn't the case 25 years ago when I was working with large prime numbers.
Remember that if you are dealing with very big numbers!