---
title: "variabel .9"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/170810-variabel-9"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "devotion"
published: "2008-04-15T18:25:57.000Z"
updated: "2008-04-16T04:21:08.000Z"
replies: 4
views: 576
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/170810-variabel-9"
---

# variabel .9

## #1 — devotion, 2008-04-15T18:25Z

Hej! :)  

Om jag har en variabel som innehåller .9 tex, hur får jag den på bästa sett att formateras till 0.9?

Mvh
Henrik

Permalänk: https://www.webforum.nu/p/170810

## #2 — Troxy, 2008-04-15T18:32Z

Av vilken datatyp är denna variabel?
Är det en sträng som innehåller ".9" eller?

Permalänk: https://www.webforum.nu/p/2101172

## #3 — devotion, 2008-04-15T19:15Z

> **Troxy skrev:**
>
> Av vilken datatyp är denna variabel?
> Är det en sträng som innehåller ".9" eller?

Ja, det är det... :)

Permalänk: https://www.webforum.nu/p/2101178

## #4 — @nders, 2008-04-16T03:11Z

```
if left(strFoo, 1) = "." then strFoo = "0" & strFoo
```

Permalänk: https://www.webforum.nu/p/2101234

## #5 — devotion, 2008-04-16T04:21Z

Tack! :)

Permalänk: https://www.webforum.nu/p/2101235

---

Tråden på webben: https://www.webforum.nu/amne/asp/170810-variabel-9
