Calculate float value in ModelBuilder and use as input for "Minus" tool

I'm using ModelBuilder and have three variables (var1, var2 and var3) which I want to use to calculate a new value. This value should be used as an input for the "Minus" tool. The calculation to be performed looks like this:

NewValue = var1 + (var2 / 2 / var3) 

When calculating this manually for var1 = 2, var2 = 2 and var3 = 3 I get 2.333... (2 + (2 / 2 / 3))

When using the "Calculate Value" tool I get: 2

Calculate float value in ModelBuilder and use as input for "Minus" tool

I was forced to use the data type "Formulated Raster" as output for "Calculate Value" because it seems to be impossible to use the output as an input for the "Minus" tool otherwise. Maybe this is the reason for the rounding.

So I tried using the "Raster Calculator" instead but this just leads me to an error message I don't understand:

Calculate float value in ModelBuilder and use as input for "Minus" tool

How can I get my Model to calculate and use the correct value of 2.333...?

Replay

Category: arcgis desktop Time: 2016-07-31 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.143 (s). 13 q(s)