paint-brush
Tips for Displaying Frontend Numbers in a Friendly Manner by@entronad
644 reads
644 reads

Tips for Displaying Frontend Numbers in a Friendly Manner

by Entronad5mJanuary 27th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Number Display has both JavaScript version for Web, and Dart version for Flutter. Number Display uses regular expression to handle numbers in frontend development. The number string is limited by the geometric space, it can't overflow a certain length. No scientific notations (1.23e+4) No trailing decimal zeros. The result when the input is neither string nor number, or the result is NaN, Infinity or -Infinity. It will be sliced if longer than length param. If it's less than 5 and input number is too long, display will throw error.

Company Mentioned

Mention Thumbnail
featured image - Tips for Displaying Frontend Numbers in a Friendly Manner
Entronad HackerNoon profile picture
Entronad

Entronad

@entronad

https://github.com/entronad

About @entronad
LEARN MORE ABOUT @ENTRONAD'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Entronad HackerNoon profile picture
Entronad@entronad
https://github.com/entronad

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Tefter
Tefter