<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 06 Mar 2012, at 13:05, <a href="mailto:Michael.VanCanneyt@Wisa.be">Michael.VanCanneyt@Wisa.be</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">On Tue, 6 Mar 2012, Zaher Dirkey wrote:<br><br><blockquote type="cite">On Mon, Mar 5, 2012 at 12:22 AM, Jonas Maebe <<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>>wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">This particular problem could obviously be resolved by adding a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">currency-specific version of abs()<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Can i ask to add overload function for ABS(Currency) be a feature request<br></blockquote><blockquote type="cite">in FPC?<br></blockquote><br>Yes, please add an entry in the bugtracker.<br></span></span></blockquote></div><br><div>Note that this requires compiler patching, because abs() is internal (it can be used in constant expressions). I would personally argue to do away entirely with the "treat currency as a floating point type on i386 so it can use the 80x87", and instead map it implementation-wise to int64 like on all other platforms. You may lose a bit of performance, but you'll gain consistency. And you won't need hacks like this (which, as mentioned before, only solves one particular use-case, and so I'm not very much in favour of doing this).</div><div><br></div><div><br></div><div>Jonas</div></body></html>