division

1. Junior Member
Join Date
Dec 1969
Posts
7

## division

When I want to make a calaculation (/) with a Double value and I get always a value with a point. f.e 43.2 and I want 43,2<BR>VAR = Round ((RS("var")/1024),3)

2. Senior Member
Join Date
Dec 1969
Posts
1,686

## What do you want?

43,2? Note the comma

3. Junior Member
Join Date
Dec 1969
Posts
7

## RE: What do you want?

I have an integer value f.e. 524 and i want this to divise with 1024: 524/1024 gives me 0.511718.. Is there not a way to change the point in a comma(&#039;,&#039;) so I have as result 0,511718...<BR><BR>Thx in advance

4. Senior Member
Join Date
Dec 1969
Posts
1,686

## well sure

but why? In any case, I&#039;d do a replace:<BR><BR>Replace(yourvar, ".", ",")

5. Junior Member
Join Date
Dec 1969
Posts
7

## RE: well sure

I&#039;m going to try that. It&#039;s just a fact of working orders.<BR><BR>Many Thx

6. Junior Member
Join Date
Dec 1969
Posts
7

## RE: well sure

I have another question. The function round( ,1) makes from 8.14 -&#062;8.1 and from 8.16 -&#062; 8.2. When I want for the 2 exemples 8.1 as a result what do I have to do then.<BR><BR>Thx

7. Senior Member
Join Date
Dec 1969
Posts
2,854

## RE: well sure

Convert to String, then<BR><BR>Number = Cstr(8.16)<BR><BR>Number = Left(number, Instr(number, ".") + 1)<BR><BR>Number = Cint(Number)<BR><BR>Number would now be 8.1<BR><BR>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•