@@ -130,7 +130,7 @@ public double KilopoundsPerCubicFoot
130
130
/// </summary>
131
131
public double KilopoundsPerCubicInch
132
132
{
133
- get { return ( _kilogramsPerCubicMeter / 27679.904710191 ) / 1e3d ; }
133
+ get { return ( _kilogramsPerCubicMeter * 3.6127298147753e-5 ) / 1e3d ; }
134
134
}
135
135
136
136
/// <summary>
@@ -146,7 +146,7 @@ public double PoundsPerCubicFoot
146
146
/// </summary>
147
147
public double PoundsPerCubicInch
148
148
{
149
- get { return _kilogramsPerCubicMeter / 27679.904710191 ; }
149
+ get { return _kilogramsPerCubicMeter * 3.6127298147753e-5 ; }
150
150
}
151
151
152
152
/// <summary>
@@ -187,7 +187,7 @@ public static Density Zero
187
187
/// </summary>
188
188
public static Density FromKilogramsPerCubicCentimeter ( double kilogramspercubiccentimeter )
189
189
{
190
- return new Density ( kilogramspercubiccentimeter * 1e+ 6) ;
190
+ return new Density ( kilogramspercubiccentimeter / 1e- 6) ;
191
191
}
192
192
193
193
/// <summary>
@@ -203,7 +203,7 @@ public static Density FromKilogramsPerCubicMeter(double kilogramspercubicmeter)
203
203
/// </summary>
204
204
public static Density FromKilogramsPerCubicMillimeter ( double kilogramspercubicmillimeter )
205
205
{
206
- return new Density ( kilogramspercubicmillimeter * 1e+ 9) ;
206
+ return new Density ( kilogramspercubicmillimeter / 1e- 9) ;
207
207
}
208
208
209
209
/// <summary>
@@ -219,7 +219,7 @@ public static Density FromKilopoundsPerCubicFoot(double kilopoundspercubicfoot)
219
219
/// </summary>
220
220
public static Density FromKilopoundsPerCubicInch ( double kilopoundspercubicinch )
221
221
{
222
- return new Density ( ( kilopoundspercubicinch * 27679.904710191 ) * 1e3d ) ;
222
+ return new Density ( ( kilopoundspercubicinch / 3.6127298147753e-5 ) * 1e3d ) ;
223
223
}
224
224
225
225
/// <summary>
@@ -235,31 +235,31 @@ public static Density FromPoundsPerCubicFoot(double poundspercubicfoot)
235
235
/// </summary>
236
236
public static Density FromPoundsPerCubicInch ( double poundspercubicinch )
237
237
{
238
- return new Density ( poundspercubicinch * 27679.904710191 ) ;
238
+ return new Density ( poundspercubicinch / 3.6127298147753e-5 ) ;
239
239
}
240
240
241
241
/// <summary>
242
242
/// Get Density from TonnesPerCubicCentimeter.
243
243
/// </summary>
244
244
public static Density FromTonnesPerCubicCentimeter ( double tonnespercubiccentimeter )
245
245
{
246
- return new Density ( tonnespercubiccentimeter * 1e+ 9) ;
246
+ return new Density ( tonnespercubiccentimeter / 1e- 9) ;
247
247
}
248
248
249
249
/// <summary>
250
250
/// Get Density from TonnesPerCubicMeter.
251
251
/// </summary>
252
252
public static Density FromTonnesPerCubicMeter ( double tonnespercubicmeter )
253
253
{
254
- return new Density ( tonnespercubicmeter * 1000 ) ;
254
+ return new Density ( tonnespercubicmeter / 0.001 ) ;
255
255
}
256
256
257
257
/// <summary>
258
258
/// Get Density from TonnesPerCubicMillimeter.
259
259
/// </summary>
260
260
public static Density FromTonnesPerCubicMillimeter ( double tonnespercubicmillimeter )
261
261
{
262
- return new Density ( tonnespercubicmillimeter * 1e+12 ) ;
262
+ return new Density ( tonnespercubicmillimeter / 1e-9 ) ;
263
263
}
264
264
265
265
#if ! WINDOWS_UWP
0 commit comments