mirror of
https://github.com/Unkn0wnCat/data-toolbox-site.git
synced 2025-06-08 03:21:35 +02:00
Fix formatting in numberbase tool
This commit is contained in:
parent
335d9c5b06
commit
ddd8cb0a82
2 changed files with 3 additions and 3 deletions
|
@ -71,8 +71,8 @@ const NumberBaseTool = () => {
|
|||
setNanState(false)
|
||||
|
||||
setDec(num.toString(10).replace(/\B(?=(\d{3})+(?!\d))/g, " "))
|
||||
setBin(num.toString(2).replace(/\B(?=(\d{4})+(?!\d))/g, " "))
|
||||
setOct(num.toString(8).replace(/\B(?=(\d{2})+(?!\d))/g, " "))
|
||||
setBin(num.toString(2).replace(/\d{4}(?=.)/g, '$& '))
|
||||
setOct(num.toString(8))
|
||||
setHex(num.toString(16))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue