Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Codificador de decisiones anidadas

Language: Layout:
- ] Show input
Absolute running time: 0.41 sec, cpu time: 0.3 sec, memory peak: 7 Mb, absolute service time: 0,53 sec 
edit mode |  history  | discussion
{"precio":200000,"isan":"function() {if (obj.precio<294794.45){isan=obj.precio*0.02;}else{if (obj.precio<353756.88){isan=5895.85+(obj.precio-294797.45)*0.05;}else{if (obj.precio<412716.53){isan=8843.96+(obj.precio-353756.88)*0.1;}else{if (obj.precio<530635.17){isan=14739.89+(obj.precio-412716.53)*0.15;}else{isan=32427.66+(obj.precio-530635.17)*0.17;}}}}return isan;}"}