php - Getting long variable/digit out of a MySQL and 'squashing' it -


Let's say I have 10,000 digits in my database ...

it started The viewer will understand if it is understood.

Is there a way to display only 100 (first 100)? Digitization

- To get the first 100, using MySQL using php, or (Pref.) ...

Before you can display such a number, MySQL requires a large number that can be stored as double or you It can be stored as a string. Actually, doubles only allow if you store it as a string, you can convert it to scientific notation by using the novel and combination (with dot) with whatever exact you like it. . You can calculate the length of the string to get the exponent. Of course you can not use the database to perform math.

Why do you need such precision?


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -