[futurebasic] Re: [FB] floating point number comparisions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2013 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Fri, 21 Jun 2013 00:03:40 +0100
Brian wrote:

> A tidier version of this function is:
> …
> s = fn CFStringCreateWithFormat( _kCFAllocatorDefault, #0, @"%f %@ %f %@ %f %@", v1, constant, v2, @"based on", slop, @"slop")
> ...

A tad tidier :-)

s = fn CFStringCreateWithFormat( _kCFAllocatorDefault, #0, @"%f %@ %f based on %f slop", v1, constant, v2, slop)