[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getFunctionRamCost](./bitburner.ns.getfunctionramcost.md)
## NS.getFunctionRamCost() method
Get the ram cost of a netscript function.
**Signature:**
```typescript
getFunctionRamCost(name: string): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The fully-qualified function name, without the leading ns
. Example inputs: hack
, tprint
, stock.getPosition
. |
**Returns:**
number
## Remarks
RAM cost: 0 GB