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=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 CF8C7217BA for ; Tue, 15 Oct 2024 17:21:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 849024850F9 for ; Tue, 15 Oct 2024 17:18:07 +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:from:from :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:references:content-language:mime-version :date:date:message-id:received:received:received:received :received:received:received; s=cgl; t=1729005487; x=1731597488; bh=WbSOgQZjVukrCtXhMlTHb1FrmeQ4P9s46/5DVnUBitY=; b=rw1h6S/QjLLX 2OKR4rISAiLAfElrNeVO1hHOk7gOU6mMmJsfFKe/dB8jSQWw6BIwXuPHcubndK9Q QTgdwxVawPGgvkYRnSytVWXdQ/jnhYzJqIL2nFFfEcGu9O4K8ByQBKHSeve6q9B0 CWXvTGZlhL2yGYPGKXt5OcbQImobEck= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="FEXIXMvv"; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="Ku4cq2P5" 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 LmlhdBAx1_AD for ; Tue, 15 Oct 2024 17:18:07 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4ACDA48516A for ; Tue, 15 Oct 2024 17:17:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DF381484BDA for ; Tue, 15 Oct 2024 17:16:17 +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 ooC55U34t5Gg for ; Tue, 15 Oct 2024 17:16:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (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 751BC484BD1 for ; Tue, 15 Oct 2024 17:16:17 +0200 (CEST) Received: from smtp.freedom.nl (unknown [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4XSd3P1wvWz4T for ; Tue, 15 Oct 2024 15:16:17 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4XSd3N6FDGz2xMK for ; Tue, 15 Oct 2024 15:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1729005377; bh=+EWMKj1taiSaOzFVN4rZcWldTj0cPmbkDUzJOOrGA10=; h=Date:Subject:To:References:From:In-Reply-To:From; b=FEXIXMvvZq1VFoe16jOFwVd0m1SLNO9c2mCm8r9bXKZorCd1mKOuwX/yPeobptbJy 7quTPK354wvNebP93/nUdGIR6Z8aiak1NgnVYna+YxLGRXf8b31b1t94b2Q8HQvzoF 7DmS0l46Lg82PnW8JPOSDDe4NF+SdNJ0viK0zzuU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=soverin1; t=1729005377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dFWiOrcGoWagLSwJZ0/qdBn9SsjNvvlzM4ALreMyG+E=; b=Ku4cq2P5LiSlrjPVnsx+b7/vCjIFXdcGQq2p5Nm1yXSfoEhPJ0kZ2axR6MtHE1q0Psox/4 /qGp9AOR21PUJdgnH0utiADEml8E7M6PZlpa3/d10B0/GTwzB07C2Fsbbm1unXzB6VdV82 k/C/O89TSsSFK/47FB8M1gc8vTMDa+/EZ0zLgkU+MeDmTv+cg48WFIrqVot3q5QcB67J2I uCaBBh58KNQtu155TQG4b1g+aJOiR91AGr/ir1cPXLV95Ak+NysSMX+ekESOO9vRLm5zX3 TtU0DgQlIMnlP1UKSbXJ8fE797/h/OEGfN95FiM6ejBv87NESBhwMF178A1wsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1729005377; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dFWiOrcGoWagLSwJZ0/qdBn9SsjNvvlzM4ALreMyG+E=; b=AKV8IlHZ6KIGu+mS5IHVU88OG/txiD2F84O1RRBl4CLHmwy8Ky6vrtPznfiS5eq5oIl8m5 WA92nkrUyeNc4ci6wxaroXRUsZFGJyo26STsVHtg2UJsyND09ey5ns0u9Knnr5OvQfMVlj YE1E5IPifB/ZF/8sgqUfGAB5KNVmOC0= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl ARC-Seal: i=1; s=default; d=freedom.nl; t=1729005377; a=rsa-sha256; cv=none; b=Z7eags2fnHC2s+IOMl71Oc7jfTbbvdqJbnDvSVVy3JbegY9l4eeOi2CcJ4HHMOeycm615+ D/7YauyvPBCdwLpLa9mjxd2HQhVBWGZrWh1baX/xA10wqpTaqJVGwZ7vYX3DmnXdVmEEfz SM/MmmM0aGJpmkJKDWLnpvjuMyvrsz8= Message-ID: Date: Tue, 15 Oct 2024 17:16:16 +0200 MIME-Version: 1.0 Content-Language: nl To: juh+ntg-context--- via ntg-context References: <8291d068-6311-422d-a6d2-eaadba2a2a9a@mailbox.org> <120fd637-7671-4252-921c-9dc08c328d77@fiee.net> <0a76a466-ba65-43a9-806f-eac63f6a882f@mailbox.org> In-Reply-To: <0a76a466-ba65-43a9-806f-eac63f6a882f@mailbox.org> X-Spampanel-Class: ham Message-ID-Hash: TMQOQITIHMVNTNFHTGMLT23KB5EFIMZK X-Message-ID-Hash: TMQOQITIHMVNTNFHTGMLT23KB5EFIMZK X-MailFrom: j.hagen@freedom.nl 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: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 10/15/2024 2:33 PM, juh+ntg-context--- via ntg-context wrote: > Am 15.10.24 um 12:42 schrieb Henning Hraban Ramm: >> I guess you know the cld-mkiv manual? > > I know that it is there. ;-) > > I'll try to reimplement the document with cld. > > First question: > > 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) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________