From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 16:14:13 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90B0F262 for ; Fri, 24 Apr 2015 16:14:13 +0000 (UTC) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oneyou.mcmli.com", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 60D0B102A for ; Fri, 24 Apr 2015 16:14:13 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:558:6017:a2:7053:e151:6908:e8b4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "sentry.24cl.com", Issuer "Mike's Certificate Authority" (verified OK)) by oneyou.mcmli.com (Postfix) with ESMTPS id 3lYLD24BgZz1ZVK for ; Fri, 24 Apr 2015 12:14:10 -0400 (EDT) Received: from BigBloat (unknown [10.20.3.20]) by sentry.24cl.com (Postfix) with ESMTP id 3lYLD06fQFzCTFS for ; Fri, 24 Apr 2015 12:14:08 -0400 (EDT) Message-ID: <201504241214050065.0096CC46@smtp.24cl.home> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Fri, 24 Apr 2015 12:14:05 -0400 From: "Mike." To: freebsd-questions@freebsd.org Subject: dc - syntax question Content-Type: text/plain; charset="ISO-8859-1" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2015 16:14:13 -0000 (FreeBSD 10.1) I've been staring at this for a bit, trying to understand what I'm doing incorrectly. Maybe I'm blinded to my error because I'm too close to it. In any case.... I have an expression that I want to use dc to evaluate. I want zero decimal places in the answer. I've simplified my more complex expression down to something simple. # dc -e "100 .333 * p" 33.300 I'd like to see 33 as the answer, not 33.300 So I then tried # dc -e "100 .333 * 0k p" and I still got 33.300 as the answer. I had thought that the "0k" would result in a precision of zero, i.e., zero decimal places in the answer. Where have I gone astray? thanks.