li $v0, 4 # system call code for Print String
la $a0, prompt # load address of prompt into $a0
syscall # print the prompt message
li $v0, 6 # system call code for Read float
syscall # reads the value of N into $v0
cvt.w.s $f0,$f0
所以我不使用cvt.w.s,而是如何将浮点数更改为整数?还有什么方法可以检查用户输入是否为浮点数?