getNumerator() 공개 메소드

public getNumerator ( ) : int
리턴 int
예제 #1
0
 public void test_element_cn_rational()
 {
     string s = wrapMathML("<cn type='rational'> 12342 <sep/> 2342342 </cn>"
     );
       N = libsbml.readMathMLFromString(s);
       assertTrue( N != null );
       assertTrue( N.getType() == libsbml.AST_RATIONAL );
       assertTrue( N.getNumerator() == 12342 );
       assertTrue( N.getDenominator() == 2342342 );
       assertTrue( N.getNumChildren() == 0 );
 }