> For the complete documentation index, see [llms.txt](https://alex-kessling.gitbook.io/alex-kessling-motion-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alex-kessling.gitbook.io/alex-kessling-motion-wiki/after-effects/ae-expressions/numbers.md).

# Numbers

### -Number Slider with auto +,-

```javascript
var s = effect(1)(1).value.toFixed(0); 
if (s<0) "-" + Math.abs(s);
else s;
```

{% hint style="info" %}
Adds a +,- depending on the Value of the slider
{% endhint %}

#### -Counter with £,% and decimals

```javascript
slider = effect("Slider Control")("Slider")
prefix = "£";
suffix = "";
comma = true;value = parseInt(slider);
if (value < 0) {  
prefix = "-" + prefix;  
value = Math.abs(value);}
if (comma) {  value = value.toLocaleString();}
prefix + value + suffix;
```

{% hint style="info" %}
Description needed
{% endhint %}

####

#### -Number Slider with auto +,-

```javascript
var s = effect(1)(1).value.toFixed(0);
 if (s>0) "+"+s else s;

```

{% hint style="info" %}
Adds a +,- depending on Value of the slider
{% endhint %}
