# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  jdk.nashorn.api.scripting.AbstractJSObject.toNumber() use `AbstractJSObject.getDefaultValue(Class)` with `Number` hint instead.
  jdk.nashorn.api.scripting.JSObject.toNumber() use `AbstractJSObject.getDefaultValue(JSObject, Class)` with `Number` hint instead.
  jdk.nashorn.api.scripting.ScriptObjectMirror.toNumber()

Copyright © 2014, 2017, Oracle and/or its affiliates. All rights reserved.