Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 36990

Forum Post: VBScript / decimal rounding issue

$
0
0
I'm working on a script to read a numerical value from a Sage table (which could have up to 4 decimal places) and placing it another numerical field in another table (which can also accommodate this length decimal precision), however I'm running into a problem - when writing the value to the destination field, the value is being truncated to 2 decimal places.   I'm using a simple declaration of my temporary variable, like below:   temp = 0   Do I need to cast this on either the 'GetValue' or 'SetValue' in order to capture the full decimal precisions?  Thanks in advance for any help.

Viewing all articles
Browse latest Browse all 36990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>