File:  [parser3project] / parser3 / tests / 275.html
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Tue Oct 6 22:24:21 2015 UTC (10 years, 10 months ago) by moko
Branches: MAIN
CVS tags: release_3_4_4, HEAD
test modified after unsigned long long int support implemented (feature #1034)

@main[]

^math:convert[F0000000](16;2)
^math:convert[-F0000000](16;2)

^math:convert[F0000000F0000000](16;2)
^math:convert[-F0000000F0000000](16;2)

^try-catch{
	$d(^math:convert[10000000000000000](16;2))
}

$d(2)

^try-catch{
	^d.div(0)
}
^try-catch{
	^d.mod(0)
}

$s[011]
test oct support disabled: ^s.int[] ^s.double[]

$s[2]
$i(^s.int[])

^try-catch{
	^i.div(0)
}
^try-catch{
	^i.mod(0)
}

$s[0x100000000]
$s as int: ^try-catch{
	^s.int[]
}

$s[0x10000000000000000]
$s as double: ^try-catch{
	^s.double[]
}


$s[0x7FFFFFFF]
$s as int: ^s.int[]

$s[-0x80000000]
$s as int: ^s.int[]

$s[0xFFFFFFFFFFFFFFFF]
$s as double: ^s.double[]
$s[0x800000000000]
$s as double: ^s.double[]
as int: ^try-catch{
	^s.int[]
}


E-mail: