|
Post by rosy on Dec 16, 2021 12:53:45 GMT -6
1. Is it intentional that STR $ converts large numbers into scientific notation?
2. WriteByte writes numbers <= 255?
|
|
|
Post by n00b on Dec 17, 2021 13:08:27 GMT -6
1. Try replacing STR$ with this function:
function n_str$(x) str_x$ = str_f$(x) while true select case right$(str_x$, 1) case "0", "." : str_x$ = left$(str_x$, len(str_x$)-1) default : return str_x$ end select wend end function
2. Yes, it writes a single byte to a file. If you try to write a larger number, it will only write the first byte of that number.
|
|
|
Post by rosy on Dec 17, 2021 14:46:10 GMT -6
But you've figured it out ... I divided it mathematically into 2 parts, but I'm surprised that this is how it works ...
|
|