Dave, How did you put the value into the object? OB SET($obj;"pi";String(PI)) OB SET($obj;"pi";PI)
Is the issue that coercing a real to text using OB GET is using a different algorithm than the String function or that putting a numeric value in as a string causes it to be stored with a different precision than the string? Good catch, BTW. On Mon, Jan 30, 2017 at 1:50 PM, David Adams <[email protected]> wrote: > I doubt that there's ever a time that this will matter to me, but sometimes > people care about tiny differences in reals. So. > > String(PI) = > 3.14159265359 > > Put PI into an object, pull it out as text and you get > 3.1415926535898 > > So, very slightly different. Again, I can't see where it will matter in my > life as I tend to round reals earlier than that anyway. I was building some > tests and this just came up and I thought I'd pass it along. > -- Kirk Brooks San Francisco, CA ======================= ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

