Type/to search
0
Follow
1
Followers
_N Esta função sempre falha
Help
Created 2023-02-04 12:13:48  Updated 2023-02-04 13:37:30
 2
 1011

not a function at _N (FILEEste erro é sempre relatado quando se controla a precisão de ordem de alguns pares de negociação

Por exemplo:
let target= 9.77E-4
let pre= 6
Log(' target=',target,' pre=',precision,' _N:',_N(target, precision))

Parece que um par de transações com um número menor de dígitos pode ter esse problema, e a função _N foi encontrada antes se fosse _N{\displaystyle _N{\displaystyle _N{\displaystyle _N} } 0.02, 2) também poderia ter um erro como _N{\displaystyle _N} 0.023, 2)

Por favor, pergunte ao administrador se a função _N deveria ser melhorada? ou coloque o código fonte, com erros desconhecidos.

Related Recommendations
Comment
All comments (2)

    抱歉,自己被bug整烦了,没仔细调试,错误应该是给_N函数传入了非数值型变量,就会报这个错。

    4 years ago

    img
    您好,这个运行没有报错呀。

    function main(){ let target= 9.77E-4 let pre= 6 Log(' target=',target,' pre=',pre,' _N:',_N(target, pre)) }
    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)