Message: Re: int-conversion with unit Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: int-conversion with unit 

Keywords: explicit cast with unit
Forum: Geometry
Re: None int-conversion with unit (Sylvia Studeny)
Date: 05 Apr, 2007
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Sylvia,

> I hope this only concerns the converting to int.

yes, it only concerns convertion to int, has nothing to do with units ...

  G4cout << "Radius=radius/cm of sphere(cm) as Integer with zahl2: "<< zahl2 << " - " << G4int(zahl2)<<G4endl;

will give:

  Radius=radius/cm of sphere(cm) as Integer with zahl2: 6 - 5

Cheers, Gabriele

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: int-conversion with unit"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]