Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s459JrY5006017 for ; Mon, 5 May 2014 11:19:54 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx103) with ESMTPS (Nemesis) id 0MTedo-1WGoF906gS-00QQOT for ; Mon, 05 May 2014 11:19:47 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s459HA9w031296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 May 2014 11:17:10 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s458IJWv013656; Mon, 5 May 2014 11:17:09 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10881057 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 5 May 2014 11:17:09 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s459H9ex001172 for ; Mon, 5 May 2014 11:17:09 +0200 Received: from smtp3.easily.co.uk (smtp3.easily.co.uk [95.130.72.151]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s459H5rD001192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 5 May 2014 11:17:08 +0200 Received: from [109.146.66.234] (port=50594 helo=palladium.local) by smtp3.easily.co.uk with esmtpa (Exim 4.43) id 1WhG06-0001L5-G8 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 05 May 2014 11:19:58 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 References: <5366C875.9040709@googlemail.com> <536751EB.5010207@latex-project.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Check-Skipped: Loadavg 12.98 Message-ID: <53675711.5030800@morningstar2.co.uk> Date: Mon, 5 May 2014 10:17:05 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: \__dim_strip_bp:n To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <536751EB.5010207@latex-project.org> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:r3SrUhwXqUQ=:X04uLKvBvja90EG4tRLG8R2GZa krCiBgizB0muSU/Bh46RYtjER4JnI1MzstJUFy+PqCd3Z2jJ1DeJ61eK4Fs77/KqxoQNz2xFB 7KXN61mVa3ijahKpp1mwRni0u2EkODnbE2cmaPzan47fvlT2Mvt2RxgVy9vSeQYTlHwkvMYTj FE3ArpGfsI36Dr7EsVESbl9FoF1V2ilVQXsMbWIEQtpGJkaoIsCi2MaQETm1xZW9pf9Ji96SQ TlqutmgFKrc+F887A/9UGG9tozvRGzYGWLpjFWG0Vv8LF+5MdjjUAa0IObGxYaQTSocYK0V8a kHU7GqAbLzCq1PAhOwZeIOywdODQyPQUYk/q4hmRdArNT8VHJKWWpb/qSNmyDs0wdYmj+D57I t4AUb/DroHyY0RG7QIpFhjm3gX3KcOLs/vxdpQLxq25d1bKePObC5mScAGE6sddOBu0lBLuuO QqrPUCWIfU18Ey3yR5NGAtp6UcyfLY/8jE975MKu13+dyJ5rzV8LxHjdYCjQhgmQ3f2Go5KjW /oWqHhdfPP1EN7+OdxfCvmMcIeA+RoDiy6bPOwx5K5YgVa5cA12F+ya+hnzB5u4I5648Tzzcp BH4f5h/FR6Yt+H8pzgQjVCKccMppZxXcJ10bLxiqAmySKGiLhnJKgl6LG7D0Qt38pxoRYj12S juDVuzCN5ojLnbJiIebVES+aRzNoHQncVmxrZJSkqsCNiDO7pRp3pUDMCMusF59GyItfKyb8l J/zKOmn8AVdawbospFoDKLTc8J63GOSU2YjpVfgjA5L+y9b2XZVyhOjWYwnwjhSA/CuS0wQ+1 nL3edYzrnOdZ9tM4s0u/UKCQFbZcc+YzSh1qXkaRCqEJ/9VkHOaiAM3JdEZpdg7glo0/Eq+13 pJu6JzvfitfHF9BWep5van+DpAdBxNCq6ZiF9maRGyI1bSA0C8L6aZPY3Rclia99E/HKKNKd/ 1lyM/E/zxbIyCkZSI/dN93Oe/3Y+CoJY9MGHvjbvKtS4AbkDOYWBiX8iv0J0mZZ9ljmGkDQJS DW9a7GsaeBuSbJmp+pVaOficWtCOq02mSRijms2j9jEYCEJo65CaGB+hl/1353A+Xvh+19Ved x1WRJUVikz8EgjQ4/M4aSmTobDqcU7L5VwNTgiIEzmACu658HFTRGpUSuWJ+Eup0px+igwD7z M2TT6ErpU9kaFFv86xuiHSFkUTUf5rryFPYI8BhMfWbetK+6xAXtOiDGwz+ck73Mq2ZLAAgCg 9TxvpJc3ZXVBPPuEczJhjfK/mNi5Qsx26fdzfbsaw29JONcVX9oq3RHMD7oXU3VkGiny/4Ns+ K8y+1OqHmLHtFbdjUIgxYBY080uRLdv8t5AmLKQgWSz2nxUXbg3esTsxI/WlFAgaHfqE2dMDP kJCEs+6gcfvrGhLDKwSB2Jpd+WXG/IGWP6PnKkfBkhJvs1kRzn/PC9qUTmQLVBb6Mhx5FGtBY gwmPUPpg== X-UI-Loop:V01:A7xsUO6aQGA=:XwUAQJG3bKvXEZ/0DtHfditHQNTCxaUIT+pWeAn9yaA= Status: R X-Status: X-Keywords: X-UID: 7391 On 05/05/2014 09:55, Frank Mittelbach wrote: > Am 05.05.2014 01:08, schrieb Heiko Oberdiek: >> Improved version with higher precision: >> >> \cs_new:Npn \__dim_strip_bp:n #1 >> { >> \__dim_strip_pt:n >> { >> \__dim_eval:w ( #1 ) * 800 / 803 \__dim_eval_end: >> } >> } >> >> * 800/803 is the integer fraction for 72/72.27 > > > perhaps I'm completely off the mark, but isn't this introducing a > restriction on the values that can be entered? (ie generating an > overflow by doing *800 first) > > frank \input expl3-generic % \ExplSyntaxOn \tl_set:Nx \l_tmpa_tl { \__dim_strip_bp:n { \c_max_dim } } \tl_show:N \l_tmpa_tl gives > \l_tmpa_tl=macro: ->16322.74998. } which I think is OK. -- Joseph Wright