This commit is contained in:
Stephen Canon committed 2020-08-24 19:04:38 -04:00
1 parent c26e60c6ba
commit 694e5ae6de
1 file changed
+1 -2
+1 -2
View File
@@ -87,8 +87,7 @@ extension Float16 {
let u = Float16(1).nextUp
let d = Float16(1).nextDown
// Smallest exponents not exactly representable as Float16.
assertClose(-7.3890572722436554354625993393835304, Float16.pow(-u, 0x801 as Int))
print(Float16.pow(-u, 0x801))
assertClose(-7.3890572722436554354625993393835304, Float16.pow(-u, 0x801))
assertClose(-0.3676100238077049750885141244927184, Float16.pow(-d, 0x801))
// Exponents close to overflow boundary.
assertClose( 65403.86633107, Float16.pow(-u, 11360))