---
title: isScientificNotation
nav:
  title: Tools
  path: /tools
group:
  title: Types
toc: content
---

## isScientificNotation

Demo:

```tsx
/**
 * title: 基础用法
 * description: 判断是否为科学计数法函数
 */

import React from 'react';
import { isScientificNotation } from 'aim-tools';

const result1 = isScientificNotation(1.23);
const result2 = isScientificNotation('1.12e');

export default () => (
  <pre>
    <code>
      isScientificNotation(1.23); // {result1.toString()}
      <br />
      <br />
      isScientificNotation('1.12e'); // {result2.toString()}
    </code>
  </pre>
);
```

### API

```typescript
isScientificNotation(num: any);
```

### Params

| 参数 | 说明           | 类型 | 默认值 | 必填 |
| :--- | :------------- | :--- | :----- | :--- |
| num  | 需要判断的数据 | any  | -      | 是   |

### Returns

| 返回值 | 说明                     |
| :----- | :----------------------- |
| true   | 该数据是科学计数法数据   |
| false  | 该数据不是科学计数法数据 |
