Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] big number calculation to small number using javascript
- Date: Mon, 22 Mar 2021 09:21:46 +0000
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] big number calculation to small number using javascript
- References: <CAMyPCTSYgGyjrctN3P67KJ+9F76qRu_DSN7Q=F91Map3Pc3y7w@mail.gmail.com>
> I want to take a user's numerical input and do a calculation on it to > then show to the user on the screen the calculation as a smaller > number (scientific notation) This looks like a question more suitable for StackOverflow. The Number.toExponential() function might be useful: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential I think you are using jquery, embedded in a PHP script? I'd personally start by trying reproduce the problem with a simpler script, replacing form inputs with hard-coded values. Darren
- Follow-Ups:
- Re: [tlug] big number calculation to small number using javascript
- From: James Tobin
- References:
- [tlug] big number calculation to small number using javascript
- From: James Tobin
Home | Main Index | Thread Index
- Prev by Date: [tlug] big number calculation to small number using javascript
- Next by Date: Re: [tlug] big number calculation to small number using javascript
- Previous by thread: [tlug] big number calculation to small number using javascript
- Next by thread: Re: [tlug] big number calculation to small number using javascript
- Index(es):