sign function

num sign(
  1. num v
)

Implementation

num sign(num v) {
  return v.sign;
}