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.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,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 DD6A42673C for ; Tue, 15 Oct 2024 22:00:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0FAB7485469 for ; Tue, 15 Oct 2024 21:59:08 +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:content-language:in-reply-to:mime-version:user-agent :date:date:message-id:from:from:references:received:received :received:received:received:received:received; s=cgl; t= 1729022347; x=1731614348; bh=scLq2gKZVRyiMSh2Cat3wGS9UtNGjktTxAv BYzyDNMk=; b=Na0Np+0IxxEVuViR+Q6arsqYAo4/ImQfZdZJA5+qtChVnXgFgak 3twSe8SeTaVeuD6heVzwLsry5sY/0tZog4crVq2gWiQ1XynLIG+5laZUYRcQH8hP DiFjn+cP2Lj7oNu+GgjFRgLC3v+eiFoRamutjKah7Q/xEbzH5/RnXTmk= 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=gmail.com 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 wpDmHK91wJnL for ; Tue, 15 Oct 2024 21:59:07 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 81F0D484F43 for ; Tue, 15 Oct 2024 21:58:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 28952484F09 for ; Tue, 15 Oct 2024 21:58:22 +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 tKR18PBu_ikq for ; Tue, 15 Oct 2024 21:58:21 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.49; helo=mail-ej1-f49.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 D0592480FB8 for ; Tue, 15 Oct 2024 21:58:21 +0200 (CEST) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a9a0ef5179dso362351466b.1 for ; Tue, 15 Oct 2024 12:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729022301; x=1729627101; darn=ntg.nl; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=o1GDXdf17AKtUZElwxuM7XAWkTvaze/5xelOMNKzRG4=; b=iqfSwAp9z25GHsDXVU7NAixx3p0WNYJKkysZEAahlLPAr9OiZYsrXpJAA+KJ26EEUp ZrV/YuabpNDmoBDp8rKxaCedrROb11OshCTd0KhqPnXmJUXus4lJTZmRTenBCknDWYId HcJ4LGNVB0SkyWRtDP7h3wPv9UsV+2gLZ/NKBzK2m8+Nar/ERPkiNi4vwd4dOna9S0rg m/eyhF53aAscDT2F8mZi65h9FpAskY/txyg46+yRq3XB4fZfoDIJqKuXzE3EF64xxanf 1VZn83LjJdVapg8Tc9I6TiCDg49FYrI+0m//PI3yFWEsE0QQ3PIDe7R4IDDWFk4YUuzU k6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729022301; x=1729627101; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o1GDXdf17AKtUZElwxuM7XAWkTvaze/5xelOMNKzRG4=; b=Yga0McbciOKjcThEBbzUFjEvab3neuo4FxZHF68oPbHWYFsPoIszPxF1DZL/uCrjYj NKkVEEx4/lkWrvNJNRShLgUD4Pco17veIClM4LbBZ9te61bBQt+dCSGpP9q9F1phTTZc waigUzbrqloNHqq9CQeFzLNwVMGdvSWsiBCZxRD3ZZgf/SVGPsfdBnVJHymejdK00shP Id8wOBMXHCpYQ8EmaNqLFg6x+Sv2lPhxamHDfP/EAhi88WD4nv1QEI41ZNu35drl6I+V yxOsbVC+FkH2qz629TAkFowtfIkZPxQqsNisFaui50iUORJU9eX0bkGBUdKq2izDouux EbmQ== X-Gm-Message-State: AOJu0YyU1jKod3gBe56yqLfaIMg0YdUfE0qn8Z+ZOllYUmc3ifOxqtba sBg6MX17iBMsfvVkZDbK8q2sJvGaHuycGTH2fYMswnJ9Jk6Gkxah11fdRw== X-Google-Smtp-Source: AGHT+IE99M2dwtE899ylX+8hVnghGtamIX2/kKYWfqXJg0+AvZfthlkc734lcPwmQOMulDfhGF3Wwg== X-Received: by 2002:a17:907:e6a7:b0:a9a:2158:e9d3 with SMTP id a640c23a62f3a-a9a34d0cf4fmr117071166b.35.1729022300596; Tue, 15 Oct 2024 12:58:20 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:e1a8::4b99? ([2a02:810d:a8bf:e1a8::4b99]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a298169a8sm105000066b.134.2024.10.15.12.58.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2024 12:58:19 -0700 (PDT) To: mailing list for ConTeXt users , 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> <12b6792e-6bc5-4ebe-8c99-73e75f613f2c@mailbox.org> From: Wolfgang Schuster Message-ID: Date: Tue, 15 Oct 2024 21:58:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.64 MIME-Version: 1.0 In-Reply-To: <12b6792e-6bc5-4ebe-8c99-73e75f613f2c@mailbox.org> Content-Language: en-US Message-ID-Hash: 2G4VWL6UKB3N2KZPV6HAHGOXIYIIEUR2 X-Message-ID-Hash: 2G4VWL6UKB3N2KZPV6HAHGOXIYIIEUR2 X-MailFrom: wolfgang.schuster.lists@gmail.com 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 juh+ntg-context--- via ntg-context schrieb am 15.10.2024 um 21:37: > 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. The function is documented in the "Context Lua documents" (cld-mkiv.pdf) manual. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________