Hi @Ming Wen<mailto:wenm...@apache.org>,

  1.  Thanks for the inputs for upgrade status.
  2.  We have tried this format method. But the problem here is -> at the end 
we have to use toString() method, this is where exactly it is getting converted 
into e.
  3.  So, we have to wait for latest apisix version which supports higher 
version of lua5.3.

Thanks & Regards
Gordhan Lal Goyal
Engineering Manager, Issuing Business
+91-8562095583
Upcoming PTO: NA
[cid:image001.png@01DB9C9D.46217D40]

From: Ming Wen <wenm...@apache.org>
Sent: 22 March 2025 09:15
To: Gordhan Lal Goyal <gordhan.go...@pinelabs.com>
Cc: dev@apisix.apache.org
Subject: Re: Info Required on Latest APISIX Version


External Email: Do not click any links or open any attachments unless you trust 
the sender and know the content is safe. Please treat hyperlinks, attachments 
and instructions in this email with extreme caution.
Hi, Gordhan,
    Understood your question.
    APISIX uses LuaJIT, which is compatible with Lua 5.1 implementations, and 
there are no plans to upgrade to Lua5.3.
    For this specific question, do you want to show it without using scientific 
notation? Or are you concerned about the accuracy of calculations (there may be 
accuracy issues when it exceeds 2 ^ 53-1)?
    If it's just a display issue, you can use this method to solve it:
    ```
> num = 123456789012345
> print(num)
1.2345678901235e+14
> print(string.format("%.0f", num))
123456789012345
> print(string.format("%d", num))
123456789012345
    ```

Thanks,
Ming Wen, Apache APISIX PMC Chair


On Fri, 21 Mar 2025 at 19:32, Gordhan Lal Goyal 
<gordhan.go...@pinelabs.com<mailto:gordhan.go...@pinelabs.com>> wrote:
Thanks @Ming Wen for response, PFB query.

The current version of the Lua 5.1 that we are using encounters limitations, 
converting numbers into scientific notation when the digit count exceeds 14. 
This behaviour is due to the inherent precision constraints of Lua's numeric 
type.
This limitation in Lua was addressed in versions above 5.3. However, with the 
current version of the APISIX 3.11, which internally utilizes Lua 5.1, we face 
challenges. Therefore, we need to explore further APISIX versions that support 
Lua 5.3 to fully resolve this issue


Thanks & Regards
Gordhan Lal Goyal


-----Original Message-----
From: Ming Wen <wenm...@apache.org<mailto:wenm...@apache.org>>
Sent: 19 March 2025 10:27
To: dev@apisix.apache.org<mailto:dev@apisix.apache.org>
Subject: Re: Info Required on Latest APISIX Version

External Email: Do not click any links or open any attachments unless you trust 
the sender and know the content is safe. Please treat hyperlinks, attachments 
and instructions in this email with extreme caution.
Apache APISIX is based on OpenResty, which uses LuaJIT, not Lua. So APISIX will 
not support Lua 5.3.
Why do you want to use Lua 5.3 or higher?

Thanks,
Ming Wen, Apache APISIX PMC Chair


On Wed, 19 Mar 2025 at 12:41, Gordhan Lal Goyal 
<gordhan.go...@pinelabs.com<mailto:gordhan.go...@pinelabs.com>.invalid> wrote:

> Hi Team,
>
> Could you please provide an update on when we can expect the latest
> version of APISIX that supports Lua 5.3 or higher?
>
> Regards,
> Gordhan Goyal
> CONFIDENTIALITY NOTICE This e-mail message and any attachments are
> only for the use of the intended recipient and may contain information
> that is privileged and confidential. If you are not the intended
> recipient, you are hereby notified that any disclosure, distribution
> or other use of this e-mail message or attachments is strictly
> prohibited. If you have received this e-mail message in error, please
> permanently delete the email and its attachments and notify the sender 
> immediately. Thank you.
>
CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the 
use of the intended recipient and may contain information that is privileged 
and confidential. If you are not the intended recipient, you are hereby 
notified that any disclosure, distribution or other use of this e-mail message 
or attachments is strictly prohibited. If you have received this e-mail message 
in error, please permanently delete the email and its attachments and notify 
the sender immediately. Thank you.
CONFIDENTIALITY NOTICE This e-mail message and any attachments are only for the 
use of the intended recipient and may contain information that is privileged 
and confidential. If you are not the intended recipient, you are hereby 
notified that any disclosure, distribution or other use of this e-mail message 
or attachments is strictly prohibited. If you have received this e-mail message 
in error, please permanently delete the email and its attachments and notify 
the sender immediately. Thank you.

Reply via email to