View Single Post
Old 09-07-2014, 12:17 AM   #553
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by chaley View Post
The following tests whether a number is an integer by comparing the integer formatted value against the floating point formatted value.
Code:
program: 
	sindex = raw_field("series_index");
	cmp(format_number(sindex, '{0:d}'), format_number(sindex, '{0:f}'), 'not int', 'int', 'not int')
Must keep this trick in mind. I knew there had to be something.
Quote:
Originally Posted by DMee View Post
Chaley, if that checks on a per-item basis it won't trigger for all the books in the series, just those with fractions?
And I didn't think of this either. So it was not you who was confused, chaley.

Last edited by eschwartz; 09-07-2014 at 12:21 AM.
eschwartz is offline   Reply With Quote