How to prevent the input box from entering the decimal limit?

clipboard.png
vue@input@keyupinput,,,,

clipboard.png
@ keyup= "$event.target.value = $event.target.value.substring (0, $event.target.value.indexOf (".") + 3)"
I wrote this, but there is a problem with this, that is, you can only enter a maximum of two decimal places before and after the decimal point. Ask for advice

.
Feb.11,2022

$event.target.value=$event.target.value.substring (0, $event.target.value.indexOf ('.') >-1? $event.target.value.indexOf ('.') + 3: $event.target.value.length) "


$event.target.value=$ event.target.value.match (/ ^\ d + (\.?\ d {0jue 2}) /) [0] | | null

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3315c-2be71.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3315c-2be71.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?