From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4HJxDhOPlGNHQgEAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 14:52:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SIV5DhOPlGOe/gAA9RJhRA (envelope-from ) for ; Sat, 10 Dec 2022 14:52:19 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 15AF1DDE2 for ; Sat, 10 Dec 2022 14:52:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p40Gg-0003jo-TL; Sat, 10 Dec 2022 08:51:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p40GV-0003jb-0H for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 08:51:43 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p40GT-00033Y-4b for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 08:51:42 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C7C77240027 for ; Sat, 10 Dec 2022 14:51:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670680298; bh=GMGs45S5iP+yshfiCXmBJE7QfabneLEshRJH4WTTPVo=; h=From:To:Cc:Subject:Date:From; b=rKJ/CQfIM5RARbZIXWyeAYAGjhS2T/yO9PEetjTKbFkHF+AYvN2w8+PhOYZuK+mr1 8jmEnVebEoGaxzI2y26ehMp0oXDWzZ6zwVk3BT+f1+KPTLhviQEAFql+AqyaRwqZPe yARFsWNRtA6S9G9/2ja8TBQjSS6H23gtSN97aDwIpCjlPIKYQ2paTcTa803MlFjlFX 1q5aU+s7mUmp6aMYdGYpNZaSTmpZJgvqH9wQA7spMuQg0r6fti0veoFI99FieT3F17 jRiaMGfX0t+0qhRJCPrFLQxD14nwqoYCXHdTc4SZ1n+i2tWpedB9/S4l4k3OH+mFM7 LEhGTwpE58z1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NTq7G38ypz6tpZ; Sat, 10 Dec 2022 14:51:38 +0100 (CET) From: Ihor Radchenko To: Ypo Cc: Org-mode Subject: Re: To convert and simplify units in tables (was:LIterate programming with calc (help)) In-Reply-To: <2ff2b255-029d-c0f4-6102-0e4482b53b63@gmail.com> References: <2ff2b255-029d-c0f4-6102-0e4482b53b63@gmail.com> Date: Sat, 10 Dec 2022 13:51:38 +0000 Message-ID: <87edt7s6xh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670680339; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Eggc+A+UXhwkQk0L4wkXkGW+bE401EQKOS9MtM2Gbyk=; b=hT8176TScDi38gy2NNZW+kHnc6dt+CUv84QkO4NGVIi+dMbhxZuhHAhyvgX11smwb769sm 2VzEyJnCp4UyuXv2IBF5yS8Jalfr6uA9W+27N+OpzvC9GUANyvlTVwm4b6AMmLFf6Y6tg5 cRBI6zyXTWVd8cfhyWoDSnQO7xyOEwsabEOer20EYYgT151MM20lOm0dZ8oZltsJfsY5Zr 32zwESiDwL1sHoNbUpJZv1j7yVD8V1s1QW/zvZ1lMGG4ONy8JuEvarnDcDP7BzG82hK3yK +jaScqMh/JFIUR2DE87/4/EvMo2CyHsxuHtCBmgeMv3j0kDZ6u7IIb9/RCR0Cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670680339; a=rsa-sha256; cv=none; b=eAAWDoDCt3h6F4p4ovkVHkpcDxx39JpJ6zG4A2kp8QknIiJyUOPgk5Q6OVTTcpHfRTbom0 0/ezFqoE8MBSny0US9mxEouzcjMqfwwTlHoe9b2aB1Q/axdh1aH9ps0uYak/gftpcAW3Wp YHmiQbEsGRALdZ21TDZ9qZuxEveI+AdSJBpsvmkUIBRIvOiEyNbaS/JrZcarIX948xhwXy sNriNXGBqUdJ5C/JawsnUOFmlvIBJO0TahADi/w7IR+afbQVDMBxzygVo+GOO8C8yHs2TU uXwznFQ2mWfF/3pZhxpT5A/BFQls+yhyIj2WLrGCdvJxuRZwtE7AiwEtNA5XYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="rKJ/CQfI"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="rKJ/CQfI"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 15AF1DDE2 X-Spam-Score: -2.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: f+sK3jyOPnQO Ypo writes: > (defmath uconvert (v u) > =C2=A0 "Convert value V to compatible unit U." > =C2=A0 (math-convert-units v u)) > > > But no luck, "cs" result is an ERROR. Is it feasible to get a value for=20 > "cs" with no units? Note that apart from Calc formula notation, you can use Elisp. That will avoid all the gotchas Calc has. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at