From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 247B727E70 for ; Tue, 15 Oct 2024 22:09:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D4C664854F4 for ; Tue, 15 Oct 2024 22:06:47 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:from:from:references:content-language :user-agent:mime-version:date:date:message-id:received:received :received:received:received:received:received:received:received; s=cgl; t=1729022807; x=1731614808; bh=LhqxGx98SsE/+szF/R7FhFsHN vO1+V5gVO9gq05p1gY=; b=u0BAFVI0LBbyeeLG+Ps345M6UEEtebyJ/6uEA/a5C lJeBHqenIEZHtbdZhmpEDQFB1KQBkEpWae67ViIBh6znOMcimr1t+Zvye3y0xP94 /BqL/43q6MdS+kPnuQMws9ECq2qdEoJZ94RrwR9VyzRdmMfmoKGlaT0R+HBRJDXO 6k= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=fiee.net Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zemaV_d582bp for ; Tue, 15 Oct 2024 22:06:47 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CCEB348568E for ; Tue, 15 Oct 2024 22:05:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 01B414852B0 for ; Tue, 15 Oct 2024 22:05:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jn9adf1FCBDK for ; Tue, 15 Oct 2024 22:05:00 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=188.68.63.102; helo=relay.yourmailgateway.de; envelope-from=texml@fiee.net; receiver= Received: from relay.yourmailgateway.de (relay.yourmailgateway.de [188.68.63.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 948B24852AE for ; Tue, 15 Oct 2024 22:05:00 +0200 (CEST) Received: from mors-relay-2502.netcup.net (localhost [127.0.0.1]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4XSlSX21Glz61Y4 for ; Tue, 15 Oct 2024 22:05:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiee.net; s=key2; t=1729022700; bh=I4PJYQZaOzNQbLHK6g7TiWS2pr4AhKpDuBE1yyJF6HM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=a8mR6FErYQizDA+IiM3t5nvB6CCH5FZCzWi7ESXLGe5kyC+i5f9uEUa6rc0Ud7BWx dIMT9EJcR04KnMVnUipYwB84ysU+dM8bkWKWmfXna1SoI80Wawh8X6wz5aEMThK1Zd WSMSpkENbMBAZQHrRqLBEnrbm1aQsvYOPX/XPSEWtIFZtYXd4LTxYzvfedWC2OyXzX /csq6CKmO46v77vCSyhDAbz5rAtUCh6CiYw7SOnKubUXla9ia79szubgbOR1HvPOC6 f7CXF6pROavZeKKrPiaK44T13Hlrk5wf5C2kkvF4eakaUB35B2rlpGeiylV65GYeAu W07bru653AdYQ== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2502.netcup.net (Postfix) with ESMTPS id 4XSlSX1K0Dz4xkD for ; Tue, 15 Oct 2024 22:05:00 +0200 (CEST) Received: from mxf9ac.netcup.net (unknown [10.243.12.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4XSlSW6h7pz8sZw for ; Tue, 15 Oct 2024 22:04:59 +0200 (CEST) Received: from [192.168.178.23] (ipservice-092-219-034-188.092.219.pools.vodafone-ip.de [92.219.34.188]) by mxf9ac.netcup.net (Postfix) with ESMTPSA id 41330215A1 for ; Tue, 15 Oct 2024 22:04:55 +0200 (CEST) Authentication-Results: mxf9ac; spf=pass (sender IP is 92.219.34.188) smtp.mailfrom=texml@fiee.net smtp.helo=[192.168.178.23] Received-SPF: pass (mxf9ac: connection is authenticated) Message-ID: Date: Tue, 15 Oct 2024 22:04:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: de-DE To: ntg-context@ntg.nl References: <8291d068-6311-422d-a6d2-eaadba2a2a9a@mailbox.org> <120fd637-7671-4252-921c-9dc08c328d77@fiee.net> <0a76a466-ba65-43a9-806f-eac63f6a882f@mailbox.org> <12b6792e-6bc5-4ebe-8c99-73e75f613f2c@mailbox.org> From: Henning Hraban Ramm Autocrypt: addr=texml@fiee.net; keydata= xsFNBGOjPmUBEADEsxKcvxohyo3olsd7Vv58dRJvJU3D4+Ppy4t0VJSomcRVc9ritqYT6tQJ bED9ZGyjmoI21wmPPA9aZ7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sF8BBgBCAAmFiEE0dzRCGYXdo3NdKLSVu0MmmnDo8sFAmOjPmwFCQWj moACGwwACgkQVu0MmmnDo8slgQ/9GrcBl6nXy6s54Hn/ontnu6HBA63YVPw4c9iK8bbfXaS1 qGWXk14/DkBxLnxpdDeM1bQ38t0mmuY9iE08gvLd1hZqtWA+wJhj1qgwevY+T1lPzmCpuRTy GX6YARigIhs2pcuKL1H8mFMRsg+BlLGaOsNticofGvYqmub+ZG+Z2fUHf2b6UJYh7u3rwJml HlL1R3xVn/34Yjp1Xcw5vFW4O+DBMmLyyD550bd0SmDYNGrX9EeShptJaMylJ/tK66367PzM G3G8m0okTHzpbYqhkEIxQRbsLRJaViKuj6+EUhmlBtOegvFTQ6u+cpax5rSVBlvPpbE9rb9H CBPtMxH1pvOMpmJVyoh998+Cyh8ZMDazuWrN1bqHuKtsbTu8fVvC/7f/fCENhhdGZ/HhFE+2 tHYcuPqshG4FZkg+9kYaMUqftQ4cp+hiVptRFKj2dG0npo80JW0cEILck6E6/jMU1FSmNc3E kZcWfSH9XrumLVBqY3OiOPuswEuWX6CQ1oJK/MK5XZJRBNJcNGg+xVNJL7uwmxLrt0eSlkln uvm7SeXs1TXP1QeIlfIgN0lHjN6yWsbT/c4gw8NgyWZFWuII5uHHQNd554LH0te1tIYZr/DH U3dYIDF2ZfHlBDjZ8PVpPwhN4/+5Oqib/aBPfSAD+LXeWcPp7T+sAEv9O1gZfgs= In-Reply-To: <12b6792e-6bc5-4ebe-8c99-73e75f613f2c@mailbox.org> X-PPP-Message-ID: <172902269558.17075.5171996597526181125@mxf9ac.netcup.net> X-Rspamd-Queue-Id: 41330215A1 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: NnyuRUtvozkOo3/05gy4F85XG+NbZ7wVdZg+ar8f Message-ID-Hash: AGOY3JUM7VLGOBALHOMWBVIVYLTN6BDK X-Message-ID-Hash: AGOY3JUM7VLGOBALHOMWBVIVYLTN6BDK X-MailFrom: texml@fiee.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: max function in spreadsheettable List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Am 15.10.24 um 21:37 schrieb juh+ntg-context--- via ntg-context: > Am 15.10.24 um 17:16 schrieb Hans Hagen via ntg-context: >>> >>> local sum = string.format("%0.2f", (0.3 * 100)) >>> >>> Gives 30.00 >>> >>> how do I get 30,00 >> >> local sum = string.formatters["%0.2M"](0.3 * 100) > > Thanks a lot, Hans. > > I can't find "string.formatters" and the format string %0.2M online or > in the Lua-Manual. Any hint where I can find more about this? As commas > as decimal separator might be a common wish, I would like to document it > somewhere in the Wiki, if I could find some context. For decimal comma in \unit and \digits, see https://wiki.contextgarden.net/Command/setupunit [method=1] % or 3 and \setdigitmode{1} which is not documented (apparently missing in interface, at least in the wiki version). Hraban ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________