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 380262263E for ; Thu, 14 Nov 2024 09:05:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5AB214855A6 for ; Thu, 14 Nov 2024 09:00:52 +0100 (CET) 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:content-language:references:mime-version :date:date:message-id:received:received:received:received :received:received; s=cgl; t=1731571252; x=1734163253; bh=s2Gagi xXNvqXOff/ZqmRPJYHo8jlsnh9GxOr9aje00Y=; b=QINBAWC7GNhTtyFsKaYl5Z /GphAg/eDThuO3rix5h5Z8Tr4sK67qTQKJ5o9vt9nRgAbMcBmgOh1WtFcg3WE015 7T82HFkdQN7xuLLW6MeEdE+JHzxsuGbFdJb4oo4OLxhB33oPtPOiaAfh1j0ZkKhq HTYf19mkw3gP3gV5Y/L7Q= 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=mailbox.org 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 8iClif88hTDs for ; Thu, 14 Nov 2024 09:00:52 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 65FE8485633 for ; Thu, 14 Nov 2024 08:59:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 6D748484F90 for ; Thu, 14 Nov 2024 08:59:08 +0100 (CET) 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 4RPZVP0QNoYa for ; Thu, 14 Nov 2024 08:59:08 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.152; helo=mout-p-102.mailbox.org; envelope-from=juh+ntg-context@mailbox.org; receiver= Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 0DE73484F8E for ; Thu, 14 Nov 2024 08:59:07 +0100 (CET) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Xpsx54ml8z9vCP for ; Thu, 14 Nov 2024 08:59:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1731571145; 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=ikQkJZtWBQ59NcSjcKD3rdvQMhAlfoD34aKg34o5zS0=; b=roMqMGk7YhKPoIWh9nFAZtrZ5zlq5y3Atc2baQGE1K6AgdAWsCL1ynLHtRsOn2Zh9DiaTa w/89SGSaomPbfXIs5BOVveAYUKlI4FGEJMN20oLVQGps0oEUl034OJLvtutR98z6oGzs78 LVmSfm6xHrTNWrLBVl+mpRKzAs8ayY0WsmyYyv+vyqgFMHvq+tJsP6PHBriFD7jexGkmDV JOpz/QAHYbwb5OZSPnhwANnFLM/HeYs7CNohTHpEvXoXd45xbc0L9rmuEXyAPB6DYS7Wu2 yDvr/D8hOpQbVlACIoTkwZQWRtiYqJu0vzJdkAVqCTb0zyoSDZVxT60doApWSA== Message-ID: <97c32d55-eefd-4e9c-a5ef-71e4ded75696@mailbox.org> Date: Thu, 14 Nov 2024 08:59:03 +0100 MIME-Version: 1.0 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> Content-Language: de-DE In-Reply-To: X-MBO-RS-ID: af016b0ab0f43981b91 X-MBO-RS-META: iuasidk7bzdtwyrxjjdiqp4f716ypzcn Message-ID-Hash: CGLDZXZZ6FA5VP32Z4SS4DVBKYF6H42H X-Message-ID-Hash: CGLDZXZZ6FA5VP32Z4SS4DVBKYF6H42H X-MailFrom: juh+ntg-context@mailbox.org 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] string.formatters (was: 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: juh+ntg-context--- via ntg-context Cc: juh+ntg-context@mailbox.org Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Am 15.10.24 um 17:16 schrieb Hans Hagen via ntg-context: > On 10/15/2024 2:33 PM, juh+ntg-context--- via ntg-context wrote: > local sum = string.formatters["%0.2M"](0.3 * 100) This does not work here with numbers with more than three digits. \starttext \startluacode context(string.formatters["%0.2M"](1000)) \stopluacode \stoptext Gives 10.2000,00 juh ___________________________________________________________________________________ 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 ___________________________________________________________________________________