Article View: comp.lang.forth
Article #128Re: ROUND function
From: marcel hendrix
Date: Sun, 18 Oct 2026 16:47
Date: Sun, 18 Oct 2026 16:47
15 lines
1649 bytes
1649 bytes
On 10/18/2026 6:09 PM, dxf wrote: > It appears ROUND() is a fairly common function. I created it using > a factor from REPRESENT. Are there other ways implementing it? > > > \ SCALE ( r1 n -- r2 ) scale r1 left/right by n digits > > : ROUND ( r1 n -- r2 ) > >r fbad? if 2drop rdrop end > r@ scale fround r> negate scale ; [..] Interesting. Please show your current SCALE and fbad? words. -marcel
Technical Details
Message-ID:
<11b2t7k$229ps$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<6ad4ef23$1@news.ausics.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: marcel hendrix <mhx@iae.nl> Newsgroups: comp.lang.forth Subject: Re: ROUND function Date: Sun, 18 Oct 2026 18:47:46 +0200 Organization: A noiseless patient Spider Lines: 15 Message-ID: <11b2t7k$229ps$1@dont-email.me> References: <6ad4ef23$1@news.ausics.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 18 Oct 2026 16:47:49 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2172732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18z0YfYM8n8lVMGZ06gQNA7LJROMyu6Frk="; posting-host="f2adaf6d8eda67b580e1130b162cfdc5" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:MIgZsKlZu28p/EOS7ohum9IZmFs= sha256:pL32K2XGqJ8SCj5d89frlAUvpcQnKSXno3s6LGzmUkQ= sha1:7XggdMFKM2zMUmoUAmw7QBxDeME= sha256:XYLdzSnUZT2MaS9ViSxBirvaKJty66SLb/d7OvYgaI0= Content-Language: en-US In-Reply-To: <6ad4ef23$1@news.ausics.net>