龙听期货论坛's Archiver

龙听 发表于 2022-11-2 12:45

【Round2Fraction】

[code]inputs: DecAmt( numericsimple ) ;
variables: var0( 0 ), var1( MinMove / PriceScale ) ;

var0 = IntPortion( DecAmt ) ;
Round2Fraction = Round( ( DecAmt - var0 ) / var1, 0 ) * var1 +
var0 ;
[/code]

页: [1]