guest271314 (2019-03-10T17:26:03.000Z)
guest271314 at gmail.com (2019-03-10T17:39:32.820Z)
> So this would help with precision? To an appreciable degree, yes, within the scope of JavaScript floating-point number implementation. The gist of the proposal is to formalize, standardize, or whatever term specification writers want to use, the *naming* of each method or operation which can get and set each discrete digit of a number - without using String methods. For input const i = 1234.567 Each digit has a formal name which developers can get and set, whether in an array, object or number format. Developers expect i % 1 // .567 not i % 1 // 0.5670000000000073 Where the initial number of digits following decimal, if any, is calculated, 0.5670000000000073 should not ever be output, as the code stops when 3 digits are calculated. Represented as an array [1,2,3,4,0.5,6,7] any digit can be set, then converted back to a number. arr[4] = arr[4] + .2 // [1,2,3,4,0.7,6,7] Taking the procedure a step further, if arr[4] result is greater than 1 the calculation can be "carried" to then next digit in the fraction or integer part, which can then be converted back to a number with the "assurance" that the values in the array will be the precise values in the resulting number.
guest271314 at gmail.com (2019-03-10T17:34:57.292Z)
> So this would help with precision? To an appreciable degree, yes, within the scope of JavaScript floating-point number implementation. The gist of the proposal is to formalize, standardize, or whatever term specification writers want to use, the *naming* of each method or operation which can get and set each discrete digit of a number - without using String methods. For input const i = 1234.567 Each digit has a formal name which developers can get and set, whether in an array, object or number format. Developers expect i % 1 // .567 not i % 1 // 0.5670000000000073 Where the initial number of digits following decimal, if any, is calculated, 0.5670000000000073 should not ever be output, as the code stops when 3 digits are calculated. Represented as an array [1,2,3,4,0.5,6,7] any digit can be set, then converted back to a number. arr[4] = arr[4] + .2 // [1,2,3,4,0.7,6,7] Taking the procedure a step further, if arr[4] result is greater than 1 the calculation can be "carried" to then next digit in the fraction part, which can then be converted back to a number with the "assurance" that the values in the array will be the precise values in the resulting number.
guest271314 at gmail.com (2019-03-10T17:27:09.673Z)
> So this would help with precision? To an appreciable degree, yes, within the scope of JavaScript floating-point number implementation. The gist of the proposal is to formalize, standardize, or whatever term specification writers want to use, the *naming* of each method or operation which can get and set each discrete digit of a number - without using String methods. For input 1234.567 Each digit has a formal name which developers can get and set, whether in an array, object or number format.